FireDAC.Comp.Client.TFDTable.CompareBookmarks

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CompareBookmarks(Bookmark1: TBookmark; Bookmark2: TBookmark): Integer; override;

C++

virtual int __fastcall CompareBookmarks(System::DynamicArray<System::Byte> Bookmark1, System::DynamicArray<System::Byte> Bookmark2);

Properties

Type Visibility Source Unit Parent
function public
FireDAC.Comp.Client.pas
FireDAC.Comp.Client.hpp
FireDAC.Comp.Client TFDTable

Description


Implements a virtual function to compare two bookmarks.

FireDAC.Comp.Client.TFDTable.CompareBookmarks inherits from Data.DB.TDataSet.CompareBookmarks. All content below this line refers to Data.DB.TDataSet.CompareBookmarks.

Implements a virtual function to compare two bookmarks.

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.

See Also