Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Change to new API name and new constructor style; add CFScript example.

Obtains the next subscripted variable name in the referenced global.

Arguments

ArgumentData TypeRequiredDescription
globalNamestringYesThe global reference to examine

Return Value

mumps.mqueryquery() returns a string containing the next subscripted variable name.

Example

 


Code Block
languagecoldfusionjs
titleCFMLCFScript
linenumberstrue
<cfsetvar mumps = createObject("component", "lib.cfmumps.mumps" new lib.cfmumps.Mumps();
mumps.open();

mumps.set("testGlobal", ["x"], "testValue");

var result = mumps.query("^testGlobal");
// result will be '^testGlobal("x")'

mumps.close();


Code Block
languagecoldfusion
titleCFML
linenumberstrue
<cfset mumps = new lib.cfmumps.Mumps()>
<cfset mumps.open()>

<cfset mumps.set("testGlobal", ["x"], "testValue")>

<cfset result = mumps.mqueryquery("^testGlobal")>
<!--- result will be '^testGlobal("x")' --->

<cfset mumps.close()>