DAC for MySQL

TDataSet.Properties.Eof

Previous Next

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

Syntax:

property Eof: Boolean;

Description:

Test 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).
  • Calls SetRange on an empty range or dataset.

Eof is False in all other cases.

If both Eof and Bof are True, the dataset or range is empty.
See also:Example: DisableControls,EnableControls,Eof