Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Retrieves or sets the value of the referenced MUMPS global node. Note that this API only gets sets a single, scalar value at the referenced node, and not an entire global or global sub-tree. In order to get or set entire globals or global sub-trees, see global.getObject() and global.setObject().

Arguments

If the newValue argument is not provided, value() will return the existing value.

NameTypeRequiredDescription
newValuestringNoThe value to be set

Return Value

Returns either a string or a numeric value representing the value of the reference MUMPS global node.

Example


CFML
<!--- this is equivalent to the following MUMPS code:
set ^people(1,"name")="John Willis"
write "Name: ",^people(1,name),!
--->

<cfset glob = new lib.cfmumps.Global("people", [1, "name"])>
<cfset glob.value("John Willis")>

<cfoutput>
Name: #glob.value()#<br>
</cfoutput>
  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.