Sign in Join
FPDoc Onlineexperiment

TObjectArray.Insert procedure

Member of TObjectArraypublicIn unit ObjectLists

Inserts a new association at the specified position in List.

Declaration

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

Arguments

Index

Ordinal position where the association is inserted.

Item

TItem instance used in the inserted association.

Description

Insert is a procedure used to insert a new association at the specified position in List. Item contains the TItem class instance for the association. The object for the association is always set to Nil in the method.

Use InsertObject to insert a new association using both an item and an object.

Use Add or AddObject to append a new item/object association.

See also

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