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:
...
Example
Code Block |
---|
language | coldfusionjs |
---|
title | CFMLCFScript |
---|
linenumbers | true |
---|
|
<cfset mumpsvar mumps = new lib.cfmumps.Mumps();
mumps.open();
var ddData = createObjectmumps.data("component", ""DD", [200, 1]);
if(ddData.hasData) {
writeOutput("<p>^DD(200,1) has data!</p>");
}
mumps.close(); |
Code Block |
---|
language | coldfusion |
---|
title | CFML |
---|
linenumbers | true |
---|
|
<cfset mumps = new lib.cfmumps.mumps")Mumps()>
<cfset mumps.open()>
<cfset ddData = mumps.data("DD", [200, 1])>
<cfif ddData.hasData>
<p>^DD(200,1) has data!</p>
</cfif>
<cfset mumps.close()> |
...