Denso BHT-200QW Dokumentacja Strona 314

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 587
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 313
306
Sample coding 1:
CD.Data$=CHKDGT$("a123Qa","N")
"Q" is a CD position character, so CHKDGT$ calculates the correc
t
CD and CD.Data$ will become "-."
When CDtype is A (EAN or UPC), CHKDGT$ identifies the EAN or UPC of
barcodedata depending upon the data length (number of digits) as listed below.
Data length of barcodedata Universal Product Codes
13 digits EAN-13 or UPC-A
8 digits EAN-8
7 digits UPC-E
If the data length is a value other than 13, 8, and 7, this function 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$("49400458","A")="8"
THEN ...
- To add a CD to barcode data:
Pass barcodedata followed by a dummy character to a CHKDGT$ as shown below.
The returned value will become the CD to be replaced with the dummy character.
Sample coding:
PRINT"4940045"+CHKDGT$("4940045"+"0","A")
49400458
When CDtype is H (STF)*, the length of barcodedata must be two or more digits.
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$("12345678905","H")="5"
THEN ...
- To add a CD to barcode data:
Pass barcodedata followed by a dummy character to a CHKDGT$ as shown below.
The returned value will become the CD to be replaced with the dummy character.
Sample coding:
PRINT"1234567890"+CHKDGT$("1234567890"+"0"."H")
12345678905
Przeglądanie stron 313
1 2 ... 309 310 311 312 313 314 315 316 317 318 319 ... 586 587

Komentarze do niniejszej Instrukcji

Brak uwag