Copies one MUMPS global or global subtree to another.
Arguments
Name | Data Type | Required | Description |
---|
inputGlobalName | string | Yes | The global name of the global to be copied |
inputGlobalSubscripts | array | Yes | An array of global subscripts of the global to be copied |
outputGlobalName | string | Yes | The global name of the global to receive the copy |
outputGlobalSubscripts | array | Yes | An array of global subscripts of the global to receive the copy |
Return Value
Returns a numeric value of 1 if the merge was successful; 0 otherwise.
Example
Code Block |
---|
language | coldfusionjs |
---|
title | CFMLCFScript |
---|
linenumbers | true |
---|
|
<cfsetvar mumps = createObject("component", "lib.cfmumps.mumps" new lib.cfmumps.Mumps();
mumps.open();
mumps.merge("otherGlobal", ["bar"], "myGlobal", [1, "foo"]);
mumps.close(); |
Code Block |
---|
language | coldfusion |
---|
title | CFML |
---|
linenumbers | true |
---|
|
<cfset mumps = new lib.cfmumps.Mumps()>
<cfset mumps.open()>
<cfset mumps.merge("otherGlobal", ["bar"], "myGlobal", [1, "foo"])>
<cfset mumps.close()> |
This example is equivalent to the following MUMPS code:
Code Block |
---|
title | MUMPS |
---|
linenumbers | true |
---|
|
M myGlobal(1,"foo")=^otherGlobal("bar") |
...