CLEAR - source-solutions/HELP GitHub Wiki
CLEAR [mem_limit]
Clears all variables, arrays, DEF FN
user functions. Closes all files. Turns
off all sound. Clears all ON ERROR
traps. Clears the loop stack.
mem_limit
specifies the upper limit of usable memory. Default is previous memory
size. Default memory size is 65535.
If called inside a FOR
to NEXT
or WHILE
to WEND
loop, an error will be
raised at the NEXT
or WEND
statement, since the loop stacks have been cleared.
- Any of the arguments has a string value: Type mismatch.
-
mem_limit
is not in[0 to 65535]
: Overflow. -
mem_limit
is too low: Address out of range.