| [Overview][Resource strings][Types][Classes][Index] | 
Return index of a data pointer in the list.
Source position: cachecls.pp line 84
| public function TCache.IndexOf( | 
| AData: Pointer | 
| ):Integer; | 
| AData | 
 | Data pointer to search for. | 
Index of item that matches AData
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.
If OnIsDataEqual is not set, an exception will be raised.
| 
 | Find data pointer in the list | |
| 
 | Add a data element to the list. | |
| 
 | Event to compare 2 items. |