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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter —Program Instructions<br />

EXECUTE<br />

Purpose Statement for executing a Fingerprint program line or a file with Fingerprint<br />

program lines from within another Fingerprint program.<br />

Syntax EXECUTE<br />

is one line of Fingerprint instructions or the name of a file containing<br />

at least one line of a Fingerprint program.<br />

Remarks This statement allows you to create a library of layouts, subroutines, texts,<br />

etc, which can be executed as a part of a program without having to merge<br />

the programs.<br />

The program called by EXECUTE must not contain any line numbers or<br />

line labels.<br />

If the EXECUTE statement is followed by a string of Fingerprint<br />

instructions, they should be separated by colons.<br />

When an error occurs in an EXECUTE file, the line number in the error<br />

message is that of the EXECUTE file, not of the program where the<br />

EXECUTE statement is issued.<br />

EXECUTE is only allowed in the execute mode, not in the immediate<br />

mode (yields Error 69).<br />

Recursive call of EXECUTE is not allowed (yields Error 78).<br />

Example This example shows how a preprogrammed file containing a bar code is<br />

executed as a part of a Fingerprint program, where the input data and<br />

printfeed are added:<br />

IMMEDIATE OFF<br />

DIR 1<br />

ALIGN 7<br />

BARSET "CODE39",2,1,3,120<br />

BARFONT "Swiss 721 BT",10,8,5,1,1<br />

BARFONT ON<br />

IMMEDIATE ON<br />

SAVE "tmp:BARCODE.PRG",L<br />

NEW<br />

10 PRPOS 30,400<br />

20 EXECUTE "tmp:BARCODE.PRG"<br />

30 PRBAR "ABC"<br />

40 PRINTFEED<br />

RUN<br />

8 <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!