User`s guide
60
CipherLab BASIC Compiler
User's Guide
Example
DISABLE READER(1)
See Also
ENABLE READER, GET_READER_DATA$
ENABLE READER
Purpose
To enable the reader ports of the terminal.
Syntax
ENABLE READER(N%)
Remarks
"N%" is an integer variable, indicating the reader port; it is 1 for portable terminals.
The reader ports are disabled by default. To enable barcode decoding function, the
reader ports have to be enabled by the ENABLE READER command.
Example
ENABLE READER(1)
ON READER(1) GOSUB Bcr_1
...
Bcr_1:
Data$ = GET_READER_DATA$(1)
RETURN
See Also
DISABLE READER, GET_READER_DATA$, OFF READER, ON READER
GOSUB…
GET_READER_DATA$
Purpose
To get data that is read from a specified reader port.
Syntax
A$ = GET_READER_DATA$(N%)
Remarks
"A$" is a string variable to be assigned to the result.
"N%" is an integer variable, indicating the reader port; it is 1 for portable terminals.
Usually, the user uses ON READER GOSUB command to trap the event the data is
transmitted to the terminal through the reader port, and then uses
GET_READER_DATA$ command in a subroutine to get the reader data.
Example
ENABLE READER(1)
ON READER(1) GOSUB Bcr_1
...
Bcr_1:
Data$ = GET_READER_DATA$(1)
RETURN