
Chapter 14. Statement Reference
274
Code 39 (
M
)
Syntax:
M[:[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 1 to 99, excluding start/stop characters. They
should satisfy the following condition:
mini.no.digits
≤
max.no.digits
If both of
mini.no.digits
and
max.no.digits
are omitted, the
default reading range is 1 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-43. The check digit is included in the number of digits.
OPEN "BAR:" AS #1 CODE "M:8-12C"
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 Code 39 codes, write as follows:
OPEN "BAR:" AS #1 CODE "&","M:;12","M:;23"
or
OPEN "BAR:" AS #1 CODE "&","M:;12,;23"
Содержание BHT-BASIC 100 SERIES
Страница 1: ......
Страница 161: ...153 Chapter 10 Sleep Function CONTENTS 10 1 Sleep Function 154...
Страница 163: ...155 Chapter 11 Resume Function CONTENTS 11 1 Resume Function 156...
Страница 173: ...165 Chapter 13 Backlight Function CONTENTS 13 1 Backlight Function 166...
Страница 192: ...Chapter 14 Statement Reference 184 Example OPEN master Dat AS 1 FIELD 1 20 AS bar 10 AS ky CLFILE 1 CLOSE 1...
Страница 249: ...241 Example CLOSE IF kyIn Y THEN KILL Master Dat END IF Reference Statements CLFILE...
Страница 349: ...341 Run time errors Error code Meaning 05h Parameter out of the range checktype is out of the range...
Страница 383: ...375 Run time errors Reference Error code Meaning 05h Parameter out of the range Functions LEFT LEN and RIGHT...