Sign in Join
FPDoc Onlineexperiment

TFPObjectList.Insert procedure

Member of TFPObjectListpublicIn unit Contnrs

Insert a new object in the list.

Declaration

pascal
procedure Insert(Index: Integer; AObject: TObject)

Arguments

Index

Position Index to insert the object in.

AObject

Object to insert in the list.

Description

Insert inserts AObject at position Index in the list. All elements in the list after this position are shifted. The index is zero based, i.e. an insert at position 0 will insert an object at the first position of the list.

Errors

None.

See also

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