Sign in Join
FPDoc Onlineexperiment

TObjectList.Insert procedure

Member of TObjectListpublicIn unit Contnrs

Insert an object in the list.

Declaration

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

Arguments

Index

Position to insert object at.

AObject

Object to insert.

Description

Insert inserts AObject in the list at position Index. The index is zero-based. This method overrides the implementation in TList to accept objects instead of pointers.

Errors

If an invalid Index is specified, an exception is raised.

See also

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