RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDataSet.CompareBookmarks Method

Implements a virtual function to compare two bookmarks.

Pascal
function CompareBookmarks(Bookmark1: TBookmark; Bookmark2: TBookmark): Integer; virtual;
C++
virtual __fastcall int CompareBookmarks(TBookmark Bookmark1, TBookmark Bookmark2);

As implemented in TDataSet, CompareBookmarks always returns 0, indicating no difference between the bookmarks. This is because TDataSet does not implement support for bookmarks. 

Descendant classes that provide bookmark support override this method to return a value less than 0 if Bookmark1 is less than Bookmark2, 0 if the bookmarks are identical, and a value greater than 0 if Bookmark1 is greater than Bookmark2. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!