FIELD #handle, length1 as varName, lenght2 as varName, . . .

FIELD is used with an OPEN "filename.ext" for random as #handle statement to specify the fields of data in each record of the opened file.  For example in this program FIELD sets up 6 fields of data, each with an appropriate length, and associates each with a string variable that holds the data to be stored in that field:

  open "custdata.001" for random as #cust len = 70   ' open as random access
  field #cust, 20 as name$, 20 as street$, 15 as city$, 2 as state$, 10 as zip$, 3 as age

PUT #handle, n

PUT is used after a random access file is opened to place a record of information (see FIELD) into the file #handle at the record numbered n.

GET #handle, recordNumber

GET is used after a random access file is opened to get a record of information (see FIELD) from a specified position.


