The undefineglobal statement destroys one or more global variables.


This statement has one parameter:

variables – is a list of global variables to be destroyed. Each variable should be separated from the next by a comma. If a variable name contains spaces or punctuation, or begins with any character except a letter or underscore, it should be surrounded by chevron (« ») characters.


This statement destroys one or more global variables. The variables may be have been created with the global statement. Destroying a variable completely removes it as if it had never been created in the first place.

The example destroys two variables, Counter and Operating Ratio.

undefineglobal Counter, «Operating Ratio»

You can also use unglobal as a synonym for this statement, like this:

unglobal Counter, «Operating Ratio»

See Also


10.2NewNew in this version.