help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



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

TObjectList.Insert

Insert an object in the list.

Declaration

Source position: contnrs.pp line 87

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.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505