Delphi Examples: DbiCompareBookMarks

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Delphi Examples: DbiCompareBookMarks

Return to chapter overview

Compare the relative positions of two bookmarks associated with the cursor.

See also the method GetBookmark associated with a TTable, TQuery, and TStoredProc. This example uses the following input:

 Compare := fdbiCompareBookMarks(Table1, BookMark25, BookMark50);

 

function fdBICompareBookMarks(DataSet: TDataSet; Bookmark1, Bookmark2: TBookmark): Integer;

var

 Compare: Integer;

begin

 Check(DbiCompareBookMarks(DataSet.Handle, Bookmark1, Bookmark2, Compare));

 Result:= Compare;

end;