Sharp OZ-707 Operation Manual - Page 70
Format, Purpose, Remarks, Example
![]() |
UPC - 074000012141
View all Sharp OZ-707 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 70 highlights
EOF p o FORMAT: EOF (file number) Abbreviation: EO. See Also: PURPOSE: Determines if the end of a sequential file has been reached. REMARKS: The EOF function checks if all data in a sequential file (with the specified file number) has been read. If all data has been read, EOF returns -1 (true) as its function value. If not, EOF returns 0 (false). For the device name COM, EOF returns -1 (true) if the 20-character buffer is empty and 0 (false) if not. An error occurs if a file with the specified number has not been opened for input. EXAMPLE: 10: OPEN "E:A" FOR OUTPUT AS #2 20: PRINT #2, 123,456,789 30: CLOSE 40: OPEN "E:A" FOR INPUT AS #2 50: INPUT #2,A,B 60: X = EOF (2) 70: INPUT #2 ,C 80: Y = EOF (2) 90: CLOSE:END [60] Not all data has been read in this line. X = o. [SO] All data has been read. Y = -1 . ERASE p o FORMAT: ERASE array 1 [, array 2, ... array n] Abbreviation: ER. See Also: CLEAR, DIM PURPOSE: Erases specified arrays. REMARKS: Array elements cannot be erased individually; the whole array is cleared and its memory area is freed. To re-define an array size, first ERASE it and then re-specify it in a DIM statement. Double-precision array variables can be specified. The contents of double-precision variables specified using the DEFDBL command are erased, but the DEFDBL mode is not. Do not use the ERASE command within a FOR...NEXT loop. EXAMPLE: 10: DIM AA(10) 200: ERASE AA 128 129
![](/manual_guide/products/sharp-oz707-operation-manual-7aa0508/70.png)