clearΒΆ

clear removes a variable or a function from memory.

n = clear()
n = clear(ssName)

Return Value

If the function succeeds, the return value n is the number auf removed variables. If the function fails, the return value is 0.

Parameters

ssName

ssName is the name of the function or variable.

Comment

If the function is invoked without parameters all global variables will be removed which are not starting with an underscore _``or the characters ``g_.

Functions loaded with loadlib cannot be removed.

Example

a = 1
clear("a")
    1.0000
print a

>>> (E0000014) a : Variable not defined

History

Version Description
5.30 Can be invoked without parameters.

id-1110517