Basic
CLEAR
[,memory location] [,stack space] [,video memory]
Frees
memory for data without erasing the program currently in
memory. CLEAR erases all arrays,
sets
numeric variables to zero
and string variables to null, and
erases
any information
set
using
a
DEF statement, such
as
DEF SEG and DEF FN. CLEAR also
turns off the SOUND, PEN, and STRIG functions and
resets
the
music background.
Memory location
specifies the highest memory location available for
BASIC.
Stack space
specifies the amount of memory to
set
aside for tem-
porarily storing internal data and addresses during subroutine calls
and during FOR/NEXT loops. Default
=
768
bytes or one-eighth
of
the memory available, whichever is smaller.
Video memory
specifies the amount of memory to be
set
aside
as
video memory. Default
=
16K
(16384).
CLEAR CLEAR,
45000
CLEAR
,,,32768
CLOSE
[buffer,
...I
Closes access to
a
disk file or communications channel. If you omit
buffer,
BASIC closes all open files.
CLOSE CLOSE
1,
2,
8
CLS
Clears the screen (or active viewport) and returns the cursor to the
home position. Home is
Row
0,
Column
0,
or in other words, the
upper left corner of the screen.
c
LS
Tandy
1000
23