Sign in Join
FPDoc Onlineexperiment

TCache.OnIsDataEqual property

Member of TCachepublicIn unit CacheCls

Event to compare 2 items.

Declaration

pascal
property OnIsDataEqual: TOnIsDataEqual read FOnIsDataEqual write FOnIsDataEqual;

Description

OnIsDataEqual is used by FindSlot and IndexOf to compare items when looking for a particular item. These functions are called by the Add method. Failing to set this event will result in an exception. The function should return True if the 2 data pointers should be considered equal.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.