Product: LABELVIEW, CODESOFT
Version: All Versions
This article explains how to insert an ASCII character into a barcode by using a Formula data source in LABELVIEW or CODESOFT.
The char(integer) conversion function returns the ASCII character that corresponds to the specified ASCII code.
Syntax:
char(<integer>)
Example:
char(65) returns A.
Create a Formula Using an ASCII Character
Follow these steps to create a formula that returns an ASCII character.
1. Open Data Sources, select Formula, and then click Add.
2. Enter a name for the formula.
For this example, the default name Formula0 is used.
3. In the expression box, enter the ASCII conversion formula.
For this example, type:
char(65)
The preview pane at the bottom of the Formula window displays the value returned by the expression. In this example, the preview displays the letter A.
4. Click OK to save the formula.
Result
The formula variable has now been created.
In this example:
- The formula name is Formula0.
- The expression char(65) returns the character A.
- The ASCII value 65 corresponds to the letter A.
- The formula can now be used as the data source for barcode or text objects on the label.
