Datamax v1.1x Printer User Manual


 
Copyright © 2007 • MCL Technologies • All Rights Reserved
www.mcl-collection.com
Chapter 5 : Using Processes
5.8.4. Variable Format
General introduction The Variable Format command allows you to reformat the data inside a
variable.
Multiple options are available depending on the type of data – Character
or Numeric.
Variable Format To reformat a variable, proceed as follows:
1 Add the process Variable Format to your label program
2 In the Value box, select the input variable you want to reformat.
3 Select whether the input variable contents are character based or
numeric based.
4 Select the appropriate reformatting options for your variable.
5 Click beside the Result Variable box.
6 Select or create the variable that will contain the reformatted
contents and click OK
7 Click OK
Examples In this example, the contents of variable [B4] are reformatted as
follows. The contents are converted to all upper case letters, leading
spaces are removed, the contents are right filled with zeros to give a
total fixed variable length of 15 characters. The resulting reformatted
contents are saved in variable [B5].
In this next example, the contents of variable [B4] are reformatted as
follows. The contents are left filled with zeros to give a total fixed
integer length of 9 digits. Two decimals points are given to the
contents. If the input contents have more than 2 decimal positions, the
decimal points are rounded up or down to the nearest two decimals.
The resulting reformatted contents are saved in variable [B5].
October 2007 Page
165