EPUB | CHM | PDF

TDataSet.Properties.Bof

Top Previous Next

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

Syntax:

property Bof: Boolean;

Description:

Test Bof (beginning of file) to determine if the cursor is positioned at the first record in a dataset. If Bof is True, the cursor is unequivocally on the first row in the dataset.

Bof is True when an application:

      • Opens a dataset;
      • Calls a dataset's First method;
      • Calls a dataset's Prior method, and the method fails (because the cursor is already on the first row in the dataset);
      • Calls SetRange on an empty range or dataset.

Bof is False in all other cases.

See also: Example: GetBookmark,GotoBookmark,FreeBookmark,FindPrior,Value,OnDataChange,BOF