
308
When CDtype is N (Codabar), the length of barcodedata must be three digits or
more including start and stop characters. If not, CHKDGT$ returns a null string.
- To check that the CD is correct:
Pass a CD-suffixed barcodedata to a CHKDGT$ as shown below. If the returned
value is equal to the CD, the CD data is suitable for the barcodedata.
Sample coding:
IF CHKDGT$("a0123-a","N")="-"
THEN ...
- To add a CD to barcode data:
Pass barcodedata followed by a dummy character and enclosed with start and stop
characters, to a CHKDGT$ as shown below. The returned value will become the CD to
be replaced with the dummy character.
Sample coding:
ld%=LEN("a0123a")
PRINT LEFT$("a0123a",ld%-1)+CHKDGT$
("a01230a","N")+RIGHT$("a0123a",1)
a0123-a
Run
RunRun
Run-
--
-time errors:
time errors:time errors:
time errors:
Error code Meaning
05h
Parameter out of the range
(CDtype is out of the range.)
Reference:
Reference:Reference:
Reference:
Statements: OPEN "BAR:"
Comentarios a estos manuales