Programming Reference Manual
 
Syntax
 
FGetR(handle%, recsize%, recordnum&)
 
Description
Returns a string value of a record in a binairy file,  opened with FOpen under handle%. Recsize% specifies the recordlength and recordnum& is the recordnumber being read.
 
Parameter
Description
handle%
A handle to the file, previously opened with the FOpen instruction.
recsize%
The lenght of the record, needed for calculating the right offset to set the file pointer.
recordnum&
The recordnumber to set the file pointer to. The first recordnumber starts with 1.
See Also
Example
 
Sub Main
Dim Hnd%, rec&
Hnd% = FOpen(“C:\MYDBASE.DAT”, 0, 4)
'read-only, shared
FSeek Hnd%, 0
Rec&=1
While Not FEof(Hnd%)
Print FGetR(Hnd%, 4, Rec&)'record is 4 bytes
Wend
FClose Hnd%
End Sub