Unit 'Contnrs' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#fcl]

TObjectList.Insert

Insert an object in the list.

Declaration

Source position: contnrs.pp line 97

public procedure TObjectList.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

TObjectList.Add

  

Add an object to the list.

TObjectList.Remove

  

Remove (and possibly free) an element from the list.


Documentation generated on: Nov 23 2024