...
None. The global reference is set when calling *open()* on the object instance created in *instantiating the lib.cfmumps.global*Global component. See Globals API Instantiation for more information on instantiating the Globals API for use.
Return Value
Returns a struct with the following boolean members:
- hasData
- hasSubscripts
- defined
Example
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
glob = createObject("component", "new lib.cfmumps.global"); glob.openGlobal("myGlobal", ["key"]); if(glob.defined().defined) { writeOutput("^myGlobal(""key"") is defined"); } if(glob.defined().hasData) { writeOutput("^myGlobal(""key"") has data"); } if(glob.defined().hasSubscripts) { writeOutput("^myGlobal(""key"") has subscripts"); } glob.close(); |
|
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<cfset glob = createObject("component", "new lib.cfmumps.global")> <cfset glob.openGlobal("myGlobal", ["key"])> <cfif glob.defined().defined> ^myGlobal("key") is defined<br> </cfif> <cfif glob.defined().hasData> ^myGlobal("key") has data<br> </cfif> <cfif glob.defined().hasSubscripts> ^myGlobal("key") has subscripts<br> </cfif> |
...