Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7  159
Chapter 2 Program Instructions
LSET
Field of Application
 Statement  for  placing  data  left-justifi ed into a fi eld in a random 
fi le buffer.
Syntax LSET<svar>=<sexp>
<svar> is  the  string  variable assigned  to  the fi eld by a FIELD 
statement.
<sexp> holds the input data.
Remarks
 After  having OPENed  a  fi le and formatted it using a FIELD statement, 
you can enter data into the random fi le buffer using the LSET and RSET 
statements (RSET right-justifi es the data).
 The input data can only be stored in the buffer as string expressions. Therefore, 
a numeric expression must be converted to string format by the use of an STR$ 
function before an LSET or RSET statement is executed.
 If the length of the  input data is less than the length  of the fi eld,  the 
data will be left justifi ed and the remaining number of bytes will be 
printed as space characters.
 If the length of the input data exceeds the length of the fi eld, the input data 
will be truncated on the right side.
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










