Sets the value of a MUMPS global node.
Arguments
Argument | Data Type | Required | Description |
---|
globalName | string | Yes | The name of the global to examine |
subscripts | array | Yes | An array of subscripts. Can be empty. |
value | any | Yes | The value to be set. |
Return Value
None.
Example
Code Block |
---|
language | js |
---|
title | CFScript |
---|
linenumbers | true |
---|
|
var mumps = new lib.cfmumps.Mumps();
mumps.open();
mumps.set("TT", ["ACCT", 1000], "CASH");
mumps.close(); |
Code Block |
---|
language | coldfusion |
---|
title | CFML |
---|
linenumbers | true |
---|
|
<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:
Code Block |
---|
title | MUMPS |
---|
linenumbers | true |
---|
|
S ^TT("ACCT",1000)="CASH" |