Chapter 14. Statement Reference
264
Syntax:
OPEN "BAR:[readmode][beepercontrol][LEDcontrol]" AS
[#]filenumber CODE readcode[,readcode...]
Parameter:
readmode
A string expression.
beepercontrol
A string expression. Specification of
B
activates the beeper (vibrator).
(Default: Deactivated)
LEDcontrol
A string expression. Specification of
L
deactivates the green indicator LED.
(Default: Activated)
filenumber
A numeric expression which returns a value from 1 to 16.
readcode
A string expression.
Description:
OPEN
"BAR:"
opens the bar code device file and associates it with
filenum-
ber
for allowing data entry from the bar code device (BHT) according to
file-
number
.
If the bar code device file has been opened with the
OPEN
"BAR:"
statement,
pressing the trigger switch
*1
turns on the illumination LED
*2
and makes the BHT
ready to scan a bar code.
• If the BHT reads a bar code successfully, the indicator LED for reading confirma-
tion will illuminate in green. Specification to
LEDcontrol
may activate or deac-
tivate the indicator LED. Specification to
beepercontrol
may activate or
deactivate the beeper and vibrator function.
• A bar code read will be decoded and then transferred to the barcode buffer.
*1
The trigger switch function is assigned to the magic keys.
*2
The illumination LED may not come on where the environment is bright enough for the BHT
to scan.
File I/O statement
OPEN "BAR:"
Opens the bar code device file. This statement also activates or deactivates the indicator LED
and the beeper (vibrator) individually.
Summary of Contents for BHT-BASIC 100 SERIES
Page 1: ......
Page 161: ...153 Chapter 10 Sleep Function CONTENTS 10 1 Sleep Function 154...
Page 163: ...155 Chapter 11 Resume Function CONTENTS 11 1 Resume Function 156...
Page 173: ...165 Chapter 13 Backlight Function CONTENTS 13 1 Backlight Function 166...
Page 249: ...241 Example CLOSE IF kyIn Y THEN KILL Master Dat END IF Reference Statements CLFILE...