[Overview][Constants][Types][Classes][Index] Reference for unit 'fgl' (#rtl)

TFPGList.Remove

Remove an item from the list.

Declaration

Source position: fgl.pp line 142

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 16 2015