EPUB | CHM | PDF

TDataSet.Methods.FindPrior

Top Previous Next

Implements a virtual method for positioning the cursor on the previous record in a filtered dataset.

Syntax:

function FindPrior: Boolean;

Description:

This function returns False, indicating that the cursor was not successfully repositioned. Descendant classes override FindPrior to position the cursor on the previous record of the dataset, honoring any filters that are in effect. FindPrior should return True if the cursor is successfully repositioned.

Delphi 7 and prior has poor support for int64 values in variant type. This means that you'll be unable to use Locate and similar methods with such fields. Lookup fields and master-detail tables will not work properly too because of their dependence on Locate method. Please update your IDE to BDS 2006 (or later) or don't use BIGINT and UNSIGNED INT datatypes for keys and indexes if you need to use them in lookup fields. Also you can't use variant-style properties (FieldValuesAsVariant and so on) with such fields.

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