Sign in Join
FPDoc Onlineexperiment

TFPGList.Insert procedure

Member of TFPGListpublicIn unit fgl

Insert a new item in the list.

Declaration

pascal
procedure 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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.