Obtains the next value of the specified MUMPS global and subscripts.
Arguments
Argument | Data Type | Required | Description |
---|---|---|---|
globalName | string | Yes | The name of the global to examine |
subscripts | array | Yes | An array of subscripts. May be empty to examine the root node of the global. |
Return Value
mumps.order() returns a struct with the following members:
...
This example returns a list of account names, presuming the IGLS accounting package is installed on the host.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<cfset mumps = createObject("component", "new lib.cfmumps.mumps"Mumps()> <cfset mumps.open()> <ul> <cfset lastResult = false> <cfset nextSubscript = ""> <cfloop condition="lastResult EQ false"> <cfset order = mumps.order("TT", ["ACCT", nextSubscript])> <cfset lastResult = order.lastResult> <cfset nextSubscript = order.value> <cfoutput> <cfif nextSubscript NEQ ""> <li>#mumps.get("TT", ["ACCT", nextSubscript])#</li> </cfif> </cfoutput> </cfloop> </ul> <cfset mumps.close()> |