Specifications
370
Syntax:
LOC([#]filenumber)
Parameter:
filenumber
A numeric expression which returns a value from 1 to 16.
Description:
LOC returns the current position within a file (a data file, communications device file,
or bar code device file) specified by
filenumber.
• Depending upon the file type, the content of the returned value differs as listed
below.
* The size of the barcode buffer is 40 bytes in the BHT-3000, and 99 bytes in the BHT-4000/BHT-5000/
BHT-6000/BHT-6500/BHT-7000/BHT-7500.
• If LOC is used before execution of the first GET statement after a data file is
opened, it returns 1 or 0 when the data file has any or no data, respectively.
LOcation Counter of file File I/O function
LOC
Returns the current position within a specified file.
File type Returned value
Data file Record number following the number of the
last record read by a
GET statement
Communications device file Number of characters contained in the
receive buffer
(0 if no data is present in the receive buffer.)
Bar code device file Number of characters contained in the bar-
code buffer*
(0 if the BHT is waiting for bar code reading.)