Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Change to new constructor style, add CFScript example

Determines whether a MUMPS global node exists and/or has child nodes or data.

Arguments

ArgumentData TypeRequiredDescription
globalNamestringYesThe name of the global to examine
subscriptsarrayYesAn 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
languagecoldfusionjs
titleCFMLCFScript
linenumberstrue
<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
languagecoldfusion
titleCFML
linenumberstrue
<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()>

...