Radio Shack TRS-80 PC-3 Owner's Manual page 124

Table of Contents

Advertisement

1 CLEAR
Abbreviations: CL., CLE., CLEA.
See also: DIM
Purpose
The CLEAR verb is used to erase all variables which have been used in the program and to reset all preallocated variables to zero or
NUL.
Use
The CLEAR verb recovers space which is being used to store variables. This might be done when the variables used in the first
part of a program are not required in the second part and available space is limited. CLEAR may also be used at the beginning
of a program when several programs are resident in memory and you want to clear out the space used by execution of prior
programs.
CLEAR does not free up the space used by the variables A - Z, A$ - Z$, or A(1) - A(26) since they are permanently assigned
(see Chapter 4). CLEAR does reset numeric variables to zero and string variables to NUL.
Examples
10 A
=
S : DIM CIS)
2Q CLEAR
Frees up the space assigned to C( ) and resets A to zero.
124

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents