Sign in Join
FPDoc Onlineexperiment

TList.Insert procedure

Member of TListpublicIn unit Classes

Inserts a new pointer in the list at a given position.

Declaration

pascal
procedure Insert(Index: Integer; Item: Pointer)

Arguments

Index

Position where to insert.

Item

Pointer to be inserted.

Description

Insert inserts pointer Item at position Index in the list. All pointers starting from Index are shifted to the right.

If Index is not a valid position, then a EListError exception is raised.

See also

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