Skip to content

TDataSet.BookmarkValid

Test whether ABookMark is a valid bookmark.

Declaration

Source position: db.pas line 1900

public 
function TDataSet.BookmarkValid(ABookmark: TBookMark) : Boolean
                               ;  virtual;

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

Name Description
TDataset.GetBookmark Get a bookmark pointer (deprecated).
TDataset.SetBookmark
TDataset.FreeBookmark Free a bookmark obtained with GetBookmark (deprecated).
TDataset.BookmarkAvailable