UBI EasyCoder 201 IIE Manuale delle Istruzioni Pagina 113

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 332
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 112
Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 7 111
Chapter 2 Program Instructions
GETPFSVAR
Field of Application
Function for recovering saved variables.
Syntax GETPFSVAR(<sexp>[,D])
<sexp> is the name of the variable (uppercase characters only).
D optionally specifies that the variable is to be deleted
after recovery.
Remarks
This function is used to recover variables registered to be saved at power
failure by means of a SETPFSVAR statement and returns either -1 on
success or 0 at failure.
If a D ag is included, the variable is deleted after it has been recovered.
This can be used to make sure that the variable is up to date and that no
old obsolete value is recovered.
Related instructions are SETPFSVAR, DELETEPFSVAR, and LIST-
PFSVAR.
Example
10 IF NOT GETPFSVAR("QS$") THEN QS$ ="<this is
the default vaule, set a new one>"
20 IF NOT GETPFSVAR("QCPS%") THEN PRINT "No
copies available":END
30 QSTATUS%=GETPFSVAR("AWE$",D):IF QSTATUS%
THEN PRINT "Recovered successfully!"
40 SETPFSVAR "QCPS%"
50 Build label
60 .....
99 PRINTFEED; QCPS%=QCPS%
100 .....
Vedere la pagina 112
1 2 ... 108 109 110 111 112 113 114 115 116 117 118 ... 331 332

Commenti su questo manuale

Nessun commento