CLEAR ERASE

Compatible with:
DOS Maximite CMM MM150 MM170 MM+ MMX Picromite ArmiteL4 Armite F4 ArmiteH7 Picomite CMM2

Syntax:
CLEAR

Description:
CLEAR
Delete all variables and recover the memory used by them.
On the CMM2, CLEAR can only be executed from the main program, not within a SUB or FUNCTION.

ERASE
Deletes variables and frees up the memory allocated to them. 
This will work with arrayed variables and normal (non array) variables.
 Arrays can be specified using empty brackets (eg, dat()) or just by specifying the variable's name (eg, dat).
On the CMM2, ERASE only works on global variables, not LOCAL or STATIC.

 

DIM myarray$(500)
DIM anotherarray$(500)
MEMORY
ERASE myarray
PRINT "After ERASE"
MEMORY


Last edited: 24 October, 2020