| [Overview][Types][Classes][Procedures and functions][Index] | 
Gets the relative sort order for the specified Bookmarks
Source position: bufdataset.pas line 654
public function TCustomBufDataset.CompareBookmarks(  | 
Bookmark1: TBookMark;  | 
Bookmark2: TBookMark  | 
):LongInt; override;  | 
Bookmark1  | 
  | 
Bookmark used in the comparison  | 
Bookmark2  | 
  | 
Bookmark used in the comparison  | 
Relative sort order for the specified bookmarks
CompareBookmarks is an overridden LongInt function used to get the relative sort order for the specified Bookmarks. CompareBookmarks re-implements the method defined in the ancestor class.
The return value indicates the relative sort order for the compared bookmark values, and uses the following values and meanings:
When the CurentIndexBuf property is assigned, its CompareBookmarks method is used to compare the bookmarks and get the return value for the method.
  | 
Defines the interface used to implement indexes in TBufDataset  |