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.

GETPFSVAR<br />

Field of Application Function for recovering saved variables.<br />

Syntax GETPFSVAR([,D])<br />

Chapter 2 Program Instructions<br />

is the name of the variable.<br />

D optionally specifies that the variable is to be deleted after<br />

recovery.<br />

Remarks This function is used to recover variables registered to be saved at power<br />

failure by means of a SETPFSVAR statement and returns either -1 on success<br />

or 0 at failure.<br />

If a D flag is included, the variable is deleted after it has been recovered. This<br />

can be used to make sure that the variable is up to date and that no old obsolete<br />

value is recovered.<br />

Related instructions are SETPFSVAR, DELETEPFSVAR, and<br />

LISTPFSVAR.<br />

Example 10 IF NOT GETPFSVAR("QS$") THEN QS$ =""<br />

20 IF NOT GETPFSVAR("QCPS%") THEN PRINT "No<br />

copies available":END<br />

30 QSTATUS%=GETPFSVAR("AWE$",D):IF QSTATUS%<br />

THEN PRINT "Recovered successfully!"<br />

40 SETPFSVAR QCPS%<br />

50 'Build label<br />

60 .....<br />

99 PRINTFEED; QCPS%=QCPS%<br />

100 .....<br />

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

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

Saved successfully!

Ooh no, something went wrong!