Copyright 2008 Shoptalk Systems

PUT #handle, recordNumber

Description:

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. For example:

' enter data into customer variables
name$ = "Billy Goetz"
street$ = "101 Buziness St"
city$ = "Atlantis"
state$ = "OZ"
zip$ = "12123-456"
age = 33

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

Note: See also GET, FIELD