Copyright 2008 Shoptalk Systems

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.


  open "custdata.001" for random as #cust len = 70 'open random access file
  field #cust, 20 as name$, 20 as street$, 15 as city$, 2 as state$, 10 as zip$, 3 as age
  'get the data from record 1
  get #cust, 1
  print name$
  print street$
  print city$
  print state$
  print zip$
  print age
  close #cust

Note: See also PUT, FIELD