17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

OPEN, <strong>cont'd</strong>.<br />

Chapter 2 Program Instructions<br />

Examples Allow sequential output to the printer's display using the OPEN statement<br />

this way:<br />

10 OPEN "console:" FOR OUTPUT AS #1<br />

20 PRINT#1:PRINT#1<br />

30 PRINT#1, "GONE TO LUNCH"<br />

40<br />

RUN<br />

PRINT#1, "BACK SOON";<br />

The text will appear on the printer's display as:<br />

GONE TO LUNCH<br />

BACK SOON<br />

Open the file "PRICELIST" for random access with the reference number #8<br />

and a record length of 254 bytes:<br />

10 OPEN "PRICELIST" AS #8 LEN=254<br />

Open the file "ADDRESSES" for sequential input with the reference number<br />

#4 and a record length of 128 bytes.<br />

10 OPEN "ADDRESSES" FOR INPUT AS #4<br />

This example shows how a few lines can be added to a program to make<br />

possible to unlock by an electronic key:<br />

10 OPEN "lock:LCK1?PAS1" FOR INPUT AS #1<br />

20 INPUT#1, A$<br />

30 IF A$ AND 1 1 THEN GOTO 90000<br />

.....<br />

.....<br />

.....<br />

80000 CLOSE #1<br />

90000 PRINT "Access to program denied!"<br />

90010 END<br />

<strong>Intermec</strong> Fingerprint 7.2 – Reference Manual Ed. 3 166

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

Saved successfully!

Ooh no, something went wrong!