RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataLink.Eof Property

Indicates whether the last record in a dataset is active.

Pascal
property Eof: Boolean;
C++
__property Boolean Eof;

Inspect Eof to determine if the dataset component associated with the TDataLink is positioned on its last record. If Eof is true, the active record is unequivocally the last row in the dataset. Eof is true when: 

The associated dataset is empty. 

A call is made to the dataset's Last method and the dataset is not unidirectional. 

A call is made to the dataset's Next method, and the method fails because the last row is already active. 

A call to the dataset's SetRange method is made resulting in an empty result set. 

Eof is false in all other cases. An application should assume Eof is false unless one of the conditions above is met and the application tests the property directly.

Tip: If both Eof and BOF are true, a dataset or range is empty.
 

 

Eof 

BOF

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!