beautypg.com

Incremental fields, 7 incremental, Fields – Compuprint 6314 CDL User Manual

Page 46: 7 incremental fields, Hello hello hello hello hello

background image

CDL – Programmer Manual

46

HELLO
HELLO
HELLO
HELLO
HELLO

fig. 34 – Example with repeated fields

2.3.7

Incremental fields

It is often necessary to print a series of labels with a progressive number or letter. You can do this
by using the commands +pii (-pii) and >pii () (see sect. 2.1.2.1.1 on page 13). The p is used as
a filler character that is the most significant positions are filled with the character p.
The following examples, the first in text format, the second in Basic, give the result shown in fig.
35.

L
D11
PC
H15
133300001550200AAA
<01
133300001100200AAA
>01
133300000650200000
-01
133300000200200000
+01
Q0005
E

OPEN "com1:9600,n,8,1" FOR OUTPUT AS #1

PRINT #1, CHR$(2); "L"
PRINT #1, "D11"
PRINT #1, "PC"
PRINT #1, "H15"

PRINT #1, "1"; "3"; "33"; "000"; "0155"; "0200"; "AAA"

'decreases the previous field by 1 (alphanumerical fields)
PRINT #1, "<01"

PRINT #1, "1"; "3"; "33"; "000"; "0110"; "0200"; "AAA"

This manual is related to the following products: