Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7108
Chapter 2 Program Instructions
GET
Field of Application
 Statement for reading a record from a random fi le to a random buffer.
Syntax GET[#]<nexp
1
>,<nexp
2
>
# indicates that whatever follows is a number. Optional.
<nexp
1
>  is the number assigned to the fi le when it was OPENed.
<nexp
2
>  is the number of the record. Must be ≠ 0.
Remarks
 The GET statement is used to read a certain record in a certain random fi le 
to a buffer, where the record will be assigned to variables according to the 
FIELD statement given for the buffer. After the GET statement has been 
executed, you can use references to the variables defi ned by the FIELD 
statement to read the characters in the random buffer.
 Numeric expressions, which have been converted to string expressions by 
STR$ functions before being put into the buffer, can be converted back to 
numeric expressions using VAL functions. 
Example
  10   OPEN "PHONELIST" AS #8 LEN=26
  20   FIELD#8,8 AS F1$, 8 AS F2$, 10 AS F3$
  30   SNAME$="SMITH"
  40   CNAME$="JOHN"
  50   PHONE$="12345630"
  60   LSET F1$=SNAME$
  70   LSET F2$=CNAME$
  80   RSET F3$=PHONE$
  90   PUT #8,1
  100   CLOSE#8
  RUN
  SAVE "PROGRAM 1.PRG "
  NEW
  10   OPEN "PHONELIST" AS #8 LEN=26
  20   FIELD#8,8 AS F1$, 8 AS F2$, 10 AS F3$
  30   GET #8,1
  40   PRINT F1$,F2$,F3$
  RUN                  
  yields:
  SMITH — — — JOHN — — — — — — 12345630










