Caché Basic Reference
EraseValue
[Home] [Back] [Next]
InterSystems: The power behind what matters   
Class Reference   
Search:    

Removes the root node of a variable.
Synopsis
EraseValue varname
Arguments
The EraseValue statement has the following argument:
varname The name of the variable for which the root node should be erased.
Description
The EraseValue statement removes the root nodes of the variable, but does not delete the array elements.
Examples
The following example demonstrates the use of the EraseArray statement:
array = "root node"
array("subnode") = "subnode"
array("subnode", "subnode") = "subnode, subnode"
Println Exists(array) 'returns 3; variable defined and has array elements
EraseValue array
Println Exists(array) 'returns 2
See Also