Using visual basic function – QuickLabel Designer Pro User Manual
Page 138
![background image](https://www.manualsdir.com/files/801746/content/doc138.png)
- 138 -
9. Click on the Close button to close the Functions dialog box.
10. The function-generated variable is defined on the label. You should link it to text object
on the label.
11. Click on the small arrow next to Text Object in the Toolbox.
12. Click on the option Use existing variable and select the variable Concatenate.
Selecting the function-generated variable Concatenate
13. Click on the label where you want to place the text object. The text object is linked to the
new variable Concatenate.
The values of variables 'ID' and 'NAME' are merged and saved to the function-generated variable
'Concatenate' every time the label is processed for preview or print.
Using Visual Basic Function
Visual Basic function allows you to perform the most demanding and difficult data manipulation on
the label. Available are all the functions, procedures and operands from Microsoft Visual Basic
script. Your script can take values from all label variables, work with the values and save the result
in a function-generated variable.
To create a visual basic function, do the following:
1. Click on the
button in the Standard toolbar or select Open in the File menu. Select
the label file ID_CARD.LBL from the sample.
The label has a link to the database so you see how the concatenate function operates on
a set of records.
2. Select the command Functions in the Data menu.
3. There is already one function defined in the label. Ignore it and click on the New button.
The dialog box with the properties of the new function will open.
4. Type in the name for the function, for example 'My Visual Basic function'.
5. Select the Visual Basic Script function from the list of functions.