Obtains the next subscripted variable name in the referenced global.
Argument | Data Type | Required | Description |
---|
globalName | string | Yes | The global reference to examine |
mumps.mqueryquery() returns a string containing the next subscripted variable name.
Code Block |
---|
language | coldfusionjs |
---|
title | CFMLCFScript |
---|
linenumbers | true |
---|
|
<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 |
---|
language | coldfusion |
---|
title | CFML |
---|
linenumbers | true |
---|
|
<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()> |