Unit 'fgl' Package
[Overview][Constants][Types][Classes][Index] [#rtl]

TFPGList.IndexOf

Index of item.

Declaration

Source position: fgl.pp line 156

public function TFPGList.IndexOf(

  const Item: T

):Integer;

Arguments

Item

  

Item to search in the list.

Function result

Index of Item in the list or -1 if it is not in the list.

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

TFPGList.Items

  

Indexed access to items in the list.

TFPGList.Insert

  

Insert a new item in the list.

TFPSList.Add

  

Add a new item to the list.


Documentation generated on: Nov 23 2024