mumps.set()

Sets the value of a MUMPS global node.

Arguments

ArgumentData TypeRequiredDescription
globalNamestringYesThe name of the global to examine
subscriptsarrayYesAn array of subscripts. Can be empty.
valueanyYesThe value to be set.

Return Value

None.

Example

CFScript
var mumps = new lib.cfmumps.Mumps();
mumps.open();

mumps.set("TT", ["ACCT", 1000], "CASH");

mumps.close();


CFML
<cfset mumps = new lib.cfmumps.Mumps()>
<cfset mumps.open()>

<cfset mumps.set("TT", ["ACCT", 1000], "CASH")>

<cfset mumps.close()>

This is equivalent to the following MUMPS code:

MUMPS
S ^TT("ACCT",1000)="CASH"