Chapter 14. Statement Reference
272
Interleaved 2 of 5 (ITF) (
I
)
Syntax :
I[:[mini.no.digits[-max.no.digits]][CD][;[1stchara[2ndchara]]]
[,[mini.no.digits[-max.no.digits]][CD][;[1stchara[2ndchara]]]]
[,[mini.no.digits[-max.no.digits]][CD][;[1stchara[2ndchara]]]]]
where
mini.no.digits
and
max.no.digits
are the minimum and maximum
numbers of digits for bar codes to be read by the BHT, respectively.
They should be a numeral from 2 to 99 and should satisfy the following condi-
tion:
mini.no.digits
≤
max.no.digits
If both of
mini.no.digits
and
max.no.digits
are omitted, then the
default reading range is from the minimum number of digits specified in Sys-
tem Mode up to 99 digits. If only
max.no.digits
is omitted, the BHT can
only read the number of digits specified by
mini.no.digits
.
CD
is a check digit. Specifying a
C
to
CD
makes the Interpreter check bar
codes with MOD-10. The check digit is included in the number of digits.
OPEN "BAR:" AS #1 CODE "I:6-10C"
To specify multi-line code scanning, the above syntax should be preceded by
an ampersand (
&
) and should be repeated by the number of lines of codes to
be scanned. In the above syntax, the semicolon (;) and the following take
effect only in multi-line code scanning.
1stchara
or
2ndchara
is a
numeral from 0 to 9 specifying the first or second character of a bar code to be
scanned. (For detailed specifications of multi-line code scanning, refer to the
Multi-line code scanning given on page 277.)
Example: To scan 2 lines of ITF codes, write as follows:
OPEN "BAR:" AS #1 CODE "&","I:;12","I:;23"
or
OPEN "BAR:" AS #1 CODE "&","I:;12,;23"
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...