Sharp OZ-707 Operation Manual - Page 62
Clear, Close
![]() |
UPC - 074000012141
View all Sharp OZ-707 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 62 highlights
CLEAR p o FORMAT: CLEAR [variable 1, variable 2, ..., variable n] Abbreviation: Cl. See Also: DIM, ERASE PURPOSE: Erases variables that have been used in the program and resets all preallocated variables to zero or null. REMARKS: CLEAR recovers memory space used to store simple numeric variables, and array variables secured using the DIM statement. Also use CLEAR at the beginning of a program to clear space occupied by variables from previously run programs if several programs are in memory. Do not use the CLEAR command within a FOR. ..NEXT loop. Use the ERASE command to clear specific array variables. EXAMPLE: 10: A = 5: DIM C(5) 20: CLEAR [20] Frees up the spaces assigned to C( ) and resets A to zero. CLOSE p o FORMAT: CLOSE [# file number, # file number, ...] Abbreviation: CLOS. See Also: OPEN PURPOSE: Closes a file or files on the currently accessed device. REMARKS: This command closes files with the specified file numbers. If fl{) file number is specified, all files are closed. The file numbers are then released for use with other files. All files are closed in the following cases: • An END or RUN command is executed. • The power is turned off. • The Card is changed to the STAT or AER mode. • A program is written or read (by the LOAD or MERGE command). EXAMPLE: CLOSE #2, #5 , #21 Closes files #2, #5, and #21 . 112 113
![](/manual_guide/products/sharp-oz707-operation-manual-7aa0508/62.png)