Returns all computed check-digits for the current barcode.
Returns a string that contains all computed check-digits - in most cases 1 or 2 character(s). The string may contain unprintable characters (e.g. ASCII 0). Please note that symbology internal check sums (e.g. Mod-103 with Code-128) are not returned here. Call this function after BCCalcCD() or after BCCreate()
- See also:
- BCCalcCD(), BCCreate()
- Parameters:
-
[in] | pBarCode | Pointer to barcode structure. |
[in,out] | lpszCDText | Check-digit text buffer. If NULL this function returns only the number of check-digits. |
[in] | nSize | Buffer size of lpszCDText. |
- Return values:
-
| LONG | Number of check-digits |
| -1 | In case of error (buffer size to small) |