Denso BHT-700-CE Reference Manual page 95

Barcode handy terminal
Table of Contents

Advertisement

Comment:
If barcode data contains a character(s) out of the specification of the barcode type specified by
dwCDType, then this function sets "0" and returns an error code. However, if only the CD position
character in barcode data is out of the specification, this function calculates the correct CD and returns it
as one-character string.
[Ex 1] BHT_GetBarChkDgt(TEXT("494AB4458"), 'A', &dwChkDgt);
"A" and "B" are out of the specification of EAN or UPC, so dwChkDgt is "0" and the function
returns an error code.
[Ex 2] BHT_GetBarChkDgt(TEXT("4940045X"), 'A', &dwChkDgt);
"X" is out of the specification but it is a CD position character, so this function calculates the
correct CD and dwChkDgt is "8."
[Ex 3] BHT_GetBarChkDgt(TEXT("a0ef3-a"), 'N', &dwChkDgt);
"e" and "f" are out of the specification of Codabar (NW-7), so dwChkDgt is "0" and the
function returns an error code.
[Ex 4] BHT_GetBarChkDgt(TEXT("a123Qa"), 'N', &dwChkDgt)
"Q" is out of the specification but it is a CD position character, so this function calculates the
correct CD and dwChkDgt is "-."
90

Advertisement

Table of Contents
loading

Table of Contents