Toshiba KB-80 Computer Keyboard User Manual


 
- 15 -
CLEAR
Function Initializes a variable.
Format CLEAR
Explanation The memory used for storing data is freed without deleting any programs in the
memory. After the CLEAR statement is executed, all numeric variables and
character variables become 0 and null strings (“”), respectively. The array declaration
becomes invalid. All files are closed.
The CLEAR statement executes the following processes.
1. All files are closed.
2. All COMMON statements and user variables are initialized.
3. The stack area and character area are initialized.
The ERASE statement is similar to the CLEAR statement. For the CLEAR statement,
all variables are initialized, however, for the ERASE statement, only the specified
array variable is initialized.