Skip to content

TFPSList.IndexOf

Search an item in the list

Declaration

Source position: fgl.pp line 83

public 
  function IndexOf(Item: Pointer) : Integer;

Description

IndexOf searches in the list for the item pointed to by Item, and returns the position (0-based index) of the item in the list, or -1 if it was not found. The items are compared using sysutils.CompareMem , so an exact memory layout match.

See also

Name Description
TFPSList.Extract delete an element from the list