Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Change to new constructor style; add CFScript example.

Copies one MUMPS global or global subtree to another.

Arguments

NameData TypeRequiredDescription
inputGlobalNamestringYesThe global name of the global to be copied
inputGlobalSubscriptsarrayYesAn array of global subscripts of the global to be copied
outputGlobalNamestringYesThe global name of the global to receive the copy
outputGlobalSubscriptsarrayYesAn 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
languagecoldfusionjs
titleCFMLCFScript
linenumberstrue
<cfsetvar mumps = createObject("component", "lib.cfmumps.mumps" new lib.cfmumps.Mumps();
mumps.open();

mumps.merge("otherGlobal", ["bar"], "myGlobal", [1, "foo"]);

mumps.close();


Code Block
languagecoldfusion
titleCFML
linenumberstrue
<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
titleMUMPS
linenumberstrue
M myGlobal(1,"foo")=^otherGlobal("bar")

 

...