Determines whether a MUMPS global node exists and/or has child nodes or data.
Arguments
Argument | Data Type | Required | Description |
---|---|---|---|
globalName | string | Yes | The name of the global to examine |
subscripts | array | Yes | An array indicating the subscripts to be examined. May be empty to examine the root node. |
Return Value
Returns a struct with the following boolean members:
- defined
- hasData
- hasSubscripts
Example
CFML
<cfset mumps = createObject("component", "lib.cfmumps.mumps").open()> <cfset ddData = mumps.data("DD", [200, 1])> <cfif ddData.hasData> <p>^DD(200,1) has data!</p> </cfif> <cfset mumps.close()>
0 Comments