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



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

TCollection.Insert

Insert an item in the collection.

Declaration

Source position: classesh.inc line 416

public function TCollection.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, TCollection.Add adds a new item at the end.

Errors

None.

See also

TCollection.Add

  

Creates and adds a new item to the collection.

TCollection.Delete

  

Delete an item from the collection.

TCollection.Items

  

Indexed array of items in the collection.

Notes

 No notes exist for this page yet. 





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