Makes the current object reference a particular globalCreates a new instance of the lib.cfmumps.Global component, associating it with a MUMPS global or global sub-tree.
Arguments
Name | Type | Required | Default | Description |
---|
globalName | string | Yes | - | The name of the desired global. |
subscripts | array | Yes | - | An array of subscripts. May be empty to address the root node of the global. |
atomic | boolean | No | true | If true, any call to getObject() or setObject() will be guarded with MUMPS incremental locks. |
lockTimeout | numeric | No | 5 | The number of seconds after which atomic operations will fail if a lock is not successfully acquired. Applies only if the atomic argument is true. |
Return Value
Returns a component, which is an instance of lib.cfmumps.global. This facilitates method chaining.
Example
Code Block |
---|
language | coldfusion |
---|
title | CFScript |
---|
linenumbers | true |
---|
|
glob = createObject("component", "new lib.cfmumps.global");
glob.openGlobal("VA", [200]); |
Code Block |
---|
language | coldfusion |
---|
title | CFML |
---|
linenumbers | true |
---|
|
<cfset glob = createObject("component", "new lib.cfmumps.global")>
<cfset glob.openGlobal("VA", [200])> |