Data.DB.TDataLink.Eof

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: public
Source:
Data.DB.pas
Data.DB.hpp
Unit: Data.DB
Parent: TDataLink

Delphi

property Eof: Boolean read GetEOF;

C++

__property bool Eof = {read=GetEOF, nodefault};

Description

Indicates whether the last record in a dataset is active.

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.

See Also