EPUB | CHM | PDF

TPSQLDirectQuery.Properties.Eof

Top Previous Next

Indicates whether or not a cursor is positioned at the last record in a dataset.

Syntax:

property Eof : boolean;

Description:

Examine Eof (end-of-file) to determine if the cursor is positioned at the last record in a dataset. If Eof is True, the cursor is unequivocally on the last row in the dataset.

Eof is True when an application:

      • Opens an empty dataset.
      • Calls a dataset's Last() method.
      • Call a dataset's Next() method, and the method fails (because the cursor is already on the last row in the dataset).

Eof is False in all other cases.

If both Eof and Bof are True, the dataset is empty.

See also: IsEmpty property