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

TFPGList.Add

Add new item of type T to the list.

Declaration

Source position: fgl.pp line 152

public function TFPGList.Add(

  const Item: T

):Integer;

Arguments

Item

  

Item to add to the list.

Function result

Index at which item was added.

Description

Add adds a new item Item of generic type T to the list and returns the position at which the item was added.

Errors

If the item could not be added, an EListError exception is raised.

See also

TFPGList.Extract

  

Extract an item from the list.

TFPGList.Items

  

Indexed access to items in the list.

TFPGList.IndexOf

  

Index of item.


Documentation generated on: Dec 26 2024