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

TFPGList.Remove

Remove an item from the list.

Declaration

Source position: fgl.pp line 161

public function TFPGList.Remove(

  const Item: T

):Integer;

Arguments

Item

  

Item to remove from the list.

Function result

Index of the removed item.

Description

Remove removes the item Item from the list, and returns the index of the removed item. If no item was removed, -1 is returned. Only the first item is removed.

Errors

None.

See also

TFPGList.IndexOf

  

Index of item.


Documentation generated on: Nov 24 2024