Skip to content

TFPGList.IndexOf

Index of item

Declaration

Source position: fgl.pp line 152

public 
  function IndexOf(const Item: T) : Integer;

Description

IndexOf returns the index of Item in the list, or -1 if the item does not appear in the list.

Errors

None.

See also

Name Description
TFPGList.Insert Insert a new item in the list
TFPGList.Items Indexed access to items in the list
TFPSList.Add Add a new item to the list