Toshiba KB-80 사용자 설명서

다운로드
페이지 79
- 44 -
LOC
Function
Provides the current theoretical location in the file.
Format
LOC ( <file number> )
Term
<file number>: The number assigned to the file by the OPEN statement
Explanation
The file specified in <file number> is:
1. Random file
The LOC function returns the record number for which the read/write (GET/PUT)
was performed last in a random file.  This function is useful for performing
read/write in the order of the record number; it is possible to obtain the record
number accessed last.
2. Sequential file
The LOC function returns the position of the current file pointer in bytes.
3. RS-232C communication file
The LOC function returns the number of characters (bytes) which are accepted by
the interrupt from the RS-232C and stored in the input buffer.  If read (INPUT# or
INPUT$) is not performed, the buffer becomes full and an error occurs.
LOC
LOF
Communication input buffer
Data