help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Resource strings][Types][Classes] Reference for unit 'CacheCls' (#fcl)

TCache.FindSlot

Find data pointer in the list

Declaration

Source position: cachecls.pp line 81

public function TCache.FindSlot(

  AData: Pointer

):PCacheSlot;

Arguments

AData

  

Data pointer to look for.

Function result

Slot which contains AData

Description

FindSlot checks all items in the list, and returns the slot which contains a data pointer that matches the pointer AData.

If no item with data pointer that matches AData is found, Nil is returned.

For this function to work correctly, the OnIsDataEqual event must be set.

Errors

If OnIsDataEqual is not set, an exception wil be raised.

See also

TCache.IndexOf

  

Return index of a data pointer in the list.

TCache.Add

  

Add a data element to the list.

TCache.OnIsDataEqual

  

Event to compare 2 items.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505