BB___GET

=GET= toc

Description
> Used with opened Random access files, GET retrieves record //**recordNumber**// from file referenced by //**#handle**//.

> See also, PUT, FIELD, and Random access files.

Syntax

 * 1) get //#handle, recordNumber//

Example
code format="vbnet" ' Create a data file for random access open "custdata.001" for random as #cust len = 70

' define fields field #cust, 20 as name$, 20 as street$, 15 as city$,_ 2 as state$, 10 as zip$, 3 as age

' enter data into customer variables input name$

' Remaining fields have been left out in order to keep example simple. '. '.

' put the data into record 1 put #cust, 1

' close the file close #cust

' open the random access file open "custdata.001" for random as #cust len = 70

' define the fields 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 data to the mainwin print name$ print street$ print city$ print state$ print zip$ print age

' close the file and end program close #cust end code

Useful Functions
code format="vbnet" Place a useful function using this command here code