Sign in Join
FPDoc Onlineexperiment

TDataSet.BookmarkValid function

Member of TDataSetpublicIn unit DB

Test whether ABookMark is a valid bookmark.

Declaration

pascal
function BookmarkValid(ABookmark: TBookMark): Boolean; virtual

Arguments

ABookmark

Bookmark pointer to test.

Function result

True if ABookmark is a valid bookmark.

Description

BookmarkValid returns True if ABookMark is a valid bookmark for the dataset. Various operations can render a bookmark invalid: changing the sort order, closing and re-opening the dataset. BookmarkValid always returns False in TDataset. Descendent classes must override this method to do an actual test.

Errors

If the bookmark is a completely arbitrary pointer, an exception may be raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.