Sign in Join
FPDoc Onlineexperiment

TCollection.Insert function

Member of TCollectionpublicIn unit Classes

Insert an item in the collection.

Declaration

pascal
function Insert(Index: Integer): TCollectionItem

Description

Insert creates a new item instance and inserts it in the collection at position Index, and returns the new instance.

In contrast, Add adds a new item at the end.

Errors

None.

See also

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