17.08.2013 Views

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

Contents, cont'd. - Intermec

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.

PUT<br />

Chapter 2 Program Instructions<br />

Field of Application Statement for writing a given record from the random buffer to a given<br />

random file.<br />

Syntax PUT[#],<br />

1 2<br />

# indicates that whatever follows is a number. Optional.<br />

1<br />

2<br />

is the number assigned to the file when it was OPENed.<br />

is the number of the record. Must be ≥1.<br />

Remarks Use LSET or RSET statements to place data in the random buffer before<br />

issuing the PUT statement.<br />

Example 10 OPEN "PHONELIST" AS #8 LEN=26<br />

20 FIELD#8,8 AS F1$, 8 AS F2$, 10 AS F3$<br />

30 SNAME$="SMITH"<br />

40 CNAME$="JOHN"<br />

50 PHONE$="12345630"<br />

60 LSET F1$=SNAME$<br />

70 LSET F2$=CNAME$<br />

80 RSET F3$=PHONE$<br />

90 PUT #8,1<br />

100 CLOSE#8<br />

RUN<br />

SAVE "PROGRAM 1.PRG"<br />

NEW<br />

10 OPEN "PHONELIST" AS #8 LEN=26<br />

20 FIELD#8,8 AS F1$, 8 AS F2$, 10 AS F3$<br />

30 GET #8,1<br />

40 PRINT F1$,F2$,F3$<br />

RUN<br />

SMITH — — — JOHN — — — — — — 12345630<br />

yields:<br />

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

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

Saved successfully!

Ooh no, something went wrong!