Chapter
10
I BASIC Keywords
FRE
Function
F RE (dummy arg u m n t )
Returns the number of bytes in memory not being used by
BASIC.
Dummy argument
can be any string or numeric constant or vari-
able. If you specify a numeric argument, BASIC returns the
amount of memory available.
If
you specify a string argument,
BASIC compresses the data before returning the amount of
memory available. This frees unused memory that was once used
for strings.
BASIC automatically compresses data if it runs out of work-
space. This may take a few seconds.
Examples
P R I N T F R E ( 4 4 )
prints the amount of memory left.
167