|
ERRCODE BCSetTextA |
( |
t_BarCode * |
pBarCode, |
|
|
LPCSTR |
szText, |
|
|
LONG |
nLen | |
|
) |
| | |
Sets barcode text (ASCII version).
Specifies the data to be encoded as barcode (also called utilizable data).
The codeable strings (allowed characters) depend on the selected barcode type: Some barcodes support alphanumeric and some support only numeric characters. Some require a specific length of the string, some not. If the data provided is not valid for the selected barcode an error is returned in BCCheck(). For a list of codeable characters for a specific barcode type check out the separate document Barcode Reference (http://www.tec-it.com/documentation). - Note:
- Please make sure to set up all barcode parameters (like barcode type, translation of escape sequences, etc.) before assigning the barcode data. Otherwise the input data will not be converted to the target character set correctly.
- See also:
- BCGetText(), BCSetTextW(), BCIsTextUnicode(), BCGetTextLen()
- Parameters:
-
[in] | pBarCode | Pointer to barcode structure. |
[in] | szText | Bar-code text. |
[in] | nLen | Length of input string.
- >0: Length of string is specified in nLen
- 0: TBarCode expects a \0-terminated string
|
- Return values:
-
| ERRCODE | ErrOk (0) in case of success. Non-zero if error occurred. |
|