<< Click to Display Table of Contents >> Navigation: Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Properties > ApolloEof |
Declaration
property ApolloEof: WordBool;
Description
Tests if a record movement function has placed the record pointer beyond the last record in the file (EOF - end of file).
See the Delphi/C++Builder VCL help for TDataSet.Eof. To avoid this naming conflict, the old TApollo.Eof method was renamed to ApolloEof in this release. Generally, both behave the same, except when SpeedMode is True. Then, ApolloEof should always be used instead of Eof for accuracy.
Return Value
True if end of file has been encountered and False if not. If Eof returns True, the record buffer is empty and the current record number is equal to the number of records in the file plus one.
Delphi Example
// skip from top to bottom of the file as fast as possible
with ApTbl do
begin
SpeedMode := True;
GoTop;
while (not ApolloEof) do
Skip( 1 );
SpeedMode := False; // Refresh controls
end;
C++Builder Example
// skip from top to bottom of the file as fast as possible
ApTbl->SpeedMode = TRUE;
ApTbl->GoTop();
while (!ApTbl->ApolloEof)
ApTbl->Skip( 1 );
ApTbl->SpeedMode = FALSE; // Refresh controls
See Also