TCache.IndexOf function
Return index of a data pointer in the list.
Declaration
function IndexOf(AData: Pointer): IntegerArguments
AData | Data pointer to search for. |
Function result
Index of item that matches
AData.
Description
IndexOF searches in the list for a slot with data pointer that
matches
AData and returns the index of the slot.
If no item with data pointer that matches AData is found,
-1 is returned.
For this function to work correctly, the OnIsDataEqual event must be set.
Errors
If
OnIsDataEqual is not set, an exception will be raised.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
