BCCalculateControlCharacter (Function) In french: CBCalculeCaractèreDeVérification Returns the check code of a bar code. Remark: This function is not available for the DataMatrix, PDF417 and QR-Code bar codes.
MyBarCode is BarCode MyBarCode.Content = "012345678901" MyBarCode.TypeBarCode = BC_EAN13 ControlCharact is string ControlCharact = BCCalculateControlCharacter(MyBarCode)
Syntax
Control character of a bar code found in a BarCodes variable Hide the details
<Result> = BCCalculateControlCharacter(<Bar code>)
<Result>: Character string Control characters in the bar code.To get more details on the error, use ErrorInfo. <Bar code>: BarCode variable Name of the BarCode variable containing the description of the bar code to analyze.
Control character of a specific bar code Hide the details
<Result> = BCCalculateControlCharacter(<Bar code type> , <Value of bar code> , <Extended code>)
<Result>: Character string Control characters in the bar code.To get more details on the error, use ErrorInfo. <Bar code type>: Integer Type of bar code to analyze (the different types of bar codes supported by WINDEV are presented in Managing bar codes). | | | BC_CODABAR | Codabar bar code. | Bar code usable with <Extended code> corresponding to BC_Check. | BC_CODE11 | Code11 bar code. | | BC_CODE39 | Code39 bar code. | Bar code usable with <Extended code> corresponding to BC_Extended or BC_Check The value of the bar code can contain the start and end characters ("*" character). In this case, these characters will be added to the drawing of the bar code and will be printed in the text displayed below the bar code. If these characters are not found in the value of bar code, they will be automatically added to the drawing of bar code. However, they will not be printed in the text displayed below the bar code. | BC_CODE93 | Code93 bar code. | Bar code usable with <Extended code> corresponding to BC_Extended or BC_Check). | BC_CODE128 | Code128 bar code. | | BC_EAN8 | EAN-8 bar code. | Possible values for the bar code:- 7 characters,
- 7 characters + 2 additional characters ("0123456+22" for example)
- 12 characters + 5 additional characters ("012345678912+22335" for example)
A control character is automatically inserted after the 7th character. | BC_EAN13 | EAN-13 bar code. | Possible values for the bar code:- 12 characters,
- 12 characters + 2 additional characters ("012345678912+22" for example)
- 12 characters + 5 additional characters ("012345678912+22335" for example)
A control character is automatically inserted after the 12th character. | BC_EAN128 | EAN-128 bar code. | | BC_INTER2OF5 | Interleaved 2 of 5 bar code. | Bar code usable with <Extended code> corresponding to BC_Check. | BC_MSI | MSI bar code. | | BC_UPCA | UPC-A bar code. | Possible values for the bar code:- 11 characters,
- 11 characters + 2 additional characters ("01234567891+22" for example)
- 11 characters + 5 additional characters ("01234567891+22335" for example)
A control character is automatically inserted after the 11th character. | BC_UPCE | UPC-E bar code. | Possible values for the bar code:- 11 characters,
- 11 characters + 2 additional characters ("01234567891+22" for example)
- 11 characters + 5 additional characters ("01234567891+22335" for example)
A control character is automatically inserted after the 11th character. | CB_GS1_128 | GS1-128 bar code (new name for the EAN-128 bar code). | |
<Value of bar code>: Character string Value of the bar code to use. <Extended code>: Integer constant (or combination of constants) Characteristics of bar code. | | BC_Charsets | Bar code that uses one or more sets of characters in order to compress the bar code. This set of characters must be defined in the value of bar code. For more details, see The different types of bar codes. | BC_Check | Bar code with check characters (valid for the BC_CODE39, BC_CODE93, BC_INTER2OF5 and BC_CODABAR bar codes only). | BC_CheckDigits | Bar codes containing check characters (valid for the BC_CODE128 and BC_EAN128 bar codes only). If this option is selected, the BC_ControlDigits and BC_Charsets constants are automatically taken into account. | BC_ControlDigits | Bar codes containing control characters (valid for the BC_CODE128 and BC_EAN128 bar codes only). By default, control characters are enclosed between "<" and ">". To avoid interpreting these characters as control characters, simply double the first "<": - "<C40>" = control character,
- "<<AB>" = <AB> to be encoded in the bar code.
| BC_Extended | Extended bar code (valid for the BC_CODE39 and BC_CODE93 bar codes only). | BC_IgnoreFormatting | Ignores the brackets in a 128 or EAN-128 bar code (valid for the BC_CODE128 and BC_EAN128 bar codes only). The brackets allow the users to easily read the bar code but they are not drawn in the code. |
This page is also available for…
|
|
|
|