TList.Insert
Inserts a new pointer in the list at a given position.
Declaration
Source position: classesh.inc line 335
public
procedure Insert(Index: Integer; Item: Pointer);
Description
Insert inserts pointer Item at position Index in the list. All pointers starting from Index are shifted to the right.
If Index is not a valid position, then a EListError exception is raised.
See also
Name | Description |
---|---|
Add | Adds a new pointer to the list. |
Delete | Removes a pointer from the list. |