Skip to content

TFPGObjectList.Insert

Insert a new object in the list.

Declaration

Source position: fgl.pp line 206

public 
procedure TFPGObjectList.Insert(Index: Integer; const Item: T);

Description

Insert inserts a new object (Item) in the list at position Index. The index is zero based and must be less than Count.

Errors

If an invalid index is specified, an EListError exception is raised.

See also

Name Description
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.