ApolloBof

<< Click to Display Table of Contents >>

Navigation:  Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Properties >

ApolloBof

Declaration

property ApolloBof: WordBool;

Description

Tests if a skip has been attempted that would place the record pointer before the first record in the file (BOF - beginning of file).

 

image\tip.gif See the Delphi/C++Builder VCL help for TDataSet.Bof. To avoid a naming conflict, the old TApollo.Bof method was renamed to ApolloBof. Generally, both behave the same, except when SpeedMode is True. Then, ApolloBof should always be used instead of Bof for accuracy.

Return Value

True or False. If ApolloBof returns True, the record buffer will contain the first record in the file.

Delphi Example

// skip from bottom to top of the file as fast as possible

with ApTbl do

begin

 SpeedMode := True; 

 GoBottom; 

 while not ApolloBof do

         Skip( -1 ); 

 SpeedMode := False; // Refresh controls

end;

C++Builder Example

// skip from bottom to top of the file as fast as possible

ApTbl->SpeedMode = TRUE;

ApTbl->GoBottom();

while (!ApTbl->ApolloBof)

 ApTbl->Skip( -1 ); 

ApTbl->SpeedMode = FALSE; // Refresh controls

See Also

ApolloEof, GoTop, Skip