Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Retrieves or sets the value of the referenced MUMPS global node.

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

 

Code Block
languagecoldfusion
titleCFML
linenumberstrue
<!--- this is equivalent to the following MUMPS code:
set ^people(1,"name")="John Willis"
write "Name: ",^people(1,name"),!
--->
<cfset glob = createObject("component", "lib.cfmumps.global")>
<cfset glob.open("people", [1, "name"])>
<cfset glob.value("John Willis")>
<cfoutput>
Name: #glob.value()#<br>
</cfoutput>