02.10.2012 Views

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

Programmer's Reference Manual Intermec Fingerprint® v8.70.0 ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter —Program Instructions<br />

PRPOS (PP), cont.<br />

The insertion point must be selected so the field in question will fit inside<br />

the print window. This implies that the print direction, the size of the field<br />

including “invisible” parts of for example an image, the alignment, and<br />

other formatting instructions must be considered. A field that does not fit<br />

entirely inside the print window will cause Error 1003, “Field out of label”,<br />

except when a CLIP ON statement is issued.<br />

To find out the present insertion point, use the PRSTAT function.<br />

Examples Programming and printing a line of text:<br />

10 FONT "Swiss 721 BT"<br />

20 PRPOS 30,200<br />

30 PRTXT "HELLO"<br />

40 PRINTFEED<br />

RUN<br />

Each text line is normally positioned separately by is own PRPOS statement.<br />

If no position is given for a printable statement, it will be printed<br />

immediately after the preceding printable statement.<br />

10 FONT "Swiss 721 BT"<br />

20 PRPOS 30,200<br />

30 PRTXT "SUMMER"<br />

40 PRTXT "TIME"<br />

50 PRINTFEED<br />

RUN<br />

yields a label with the text:<br />

SUMMERTIME<br />

A program for fixed line-spacing of text may be composed this way<br />

(another way is to use the extended PRBOX statement):<br />

10 FONT"Swiss 721 BT"<br />

20 X%=30:Y%=500<br />

30 INPUT A$<br />

40 PRPOS X%,Y%<br />

50 PRTXT A$<br />

60 Y%=Y%-50<br />

70 IF Y%>=50 GOTO 30<br />

80 PRINTFEED<br />

90 END<br />

RUN<br />

Enter the text for each line after the question mark shown on the screen<br />

of the host. The Y-coordinate will be decremented by 50 dots for each<br />

new line until it reaches the value 50, which means that ten lines will be<br />

printed.<br />

1 <strong>Intermec</strong> Fingerprint <strong>v8.70.0</strong>/v10.0.0 Programmer´s <strong>Reference</strong> <strong>Manual</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!