Intermec EasyCoder C4 – Programmer’s Guide Ed. 3 39
Chapter 7 Commands
Remarks, cont.
The fi eld justifi cation parameter (p
3
) affects the way the counter will be printed.
When p
3
= L, R, or C, the counter value will be printed left, right or centre
justifi ed in an area with a width defi ned by p
2
(number of digits). If no justifi cation
is selected (p
3
= N), the fi eld will truncated from the right side so as to not
exceed the set maximum fi eld length, which may be useful when using a counter
as input data to a bar code.
If the start value entered, when the form is retrieved for printing, is started by one or
several zeros (0), the entire area specifi ed by p
2
(number of digits) will be padded with
leading zeros, that is p
3
(fi eld justifi cation) will have no effect.
Note: If a single counter is stepped up several times on the same form, then
the step value p
4
must be set to the number of times the counter is used in the
form or equivalent to what the step values for the single counter add up to in
this form. A Cn±x command must also be used when designing the actual form.
See the A and B commands.
Example
This form lets you test fi eld justifi cations by entering various start values
when the form is retrieved for printing. Test various number of digits, with
and without leading zeros.
↵
FK"TEST5"↵
FS"TEST5"↵
C0,5,L,+1,"Start value CNT 0"↵
C1,5,R,+1,"Start value CNT 1"↵
C2,5,C,+1,"Start value CNT 2"↵
C3,5,N,+1,"Start value CNT 3"↵
A50,50,0,3,1,1,N,"Cnt left justifi ed:"↵
A50,100,0,3,1,1,N,"Cnt right justifi ed:"↵
A50,150,0,3,1,1,N,"Cnt center justifi ed:"↵
A50,200,0,3,1,1,N,"Cnt not justifi ed: "↵
FE↵
C – Counter, cont.