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

TFPGList.Insert

Insert a new item in the list

Declaration

Source position: fgl.pp line 152

public procedure TFPGList.Insert(

  Index: Integer;

  const Item: T

);

Arguments

Index

  

Position to insert item at

Item

  

Item to insert in the list

Description

Insert inserts a new 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

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: May 14 2021