Specifications

369
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 99 bytes for bar codes and 32767 bytes for 2D codes.
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.)