#CLEAR (clear single-valued symbol) 

Top  Previous  Next

 

#CLEAR( symbol )

#CLEAR

Removes the value from a single-valued user-defined symbol.

symbol

A single-valued user-defined symbol.

The #CLEAR statement removes the value from a single-valued user-defined symbol. This statement is approximately the same as using #SET to assign a null value to the symbol, except it is more efficient.

Example:

#DECLARE(%SomeSymbol)      #!Declare symbol

#SET(%SomeSymbol,'Value')  #!Assign a value

                          #!%SomeSymbol now contains: 'Value'

#CLEAR(%SomeSymbol)        #!Clear value

                          #!%SomeSymbol now contains: ''

 

See Also:     #DECLARE ,#ADD ,#FREE