Contents Previous Next Subchapters

Starting A New Program
Syntax clear
See Also clear function , autoexec
Menu Command File | New

Description
Erases all variables, constants, user-defined functions, and labels.

Example
If you enter
     x = 5
     print x
O-Matrix will respond
     5
If you now enter
     clear
     print x
O-Matrix will respond with an error message because x is no longer defined.

Reference
The clear command does not erase debugger breakpoints or watchpoints . The dall command can be used to do this.