[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TList.Insert

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

Declaration

Source position: classesh.inc line 211

public procedure TList.Insert(

  Index: Integer;

  Item: Pointer

);

Arguments

Index

  

Position where to insert

Item

  

Pointer to be inserted.

Description

Insertinserts pointer Itemat position Indexin the list. All pointers starting from Indexare shifted to the right.

If Indexis not a valid position, then a EListErrorexception is raised.

See also

Add

  

Adds a new pointer to the list.

Delete

  

Removes a pointer from the list.