Initializes all program variables, closes all files and optionally defines the stack size.
CLEAR
[ ,,stack_size ]
CLEAR
closes all open files, sets all numeric variables and arrays to 0 and sets all string variables to zero length.
If your program uses recursion or performs several levels of subroutine calls, you might need to increase your program’s stack size.
stack_size is the size of the stack in bytes. You must precede the stack size with two commas as shown.
The default stack size is 2048 bytes.
Do not execute CLEAR
within a subroutine.
The CLEAR
command:
'Initialize variables and create a stack of 4096 bytes
CLEAR,,4096