Internet Direct (Indy) Version 9.0.1 Beta
TIdObjectList.Add
Inserts an object at the end of the list.

function Add(AObject: TObject): Integer;
Parameters
AObject: TObject
Object to add to the object list.

Returns
Integer - Index position of the inserted object.

Description
Add is an Integer function used to insert an object at the end of the list. Add places the object after the last item, even if the array contains nil references, and returns the index of the inserted object. (The first object in the list has an index of 0.)

Add increments Count and, if necessary, allocates memory by increasing the value of Capacity.