Internet Direct (Indy) Version 9.0.2 Beta
|
function Remove(AObject: TObject): Integer;
After an object is deleted, all the objects that follow it are moved up in index position and Count is decremented. If an object appears more than once on the list, Remove deletes only the first appearance. Hence, if OwnsObjects is True, removing an object that appears more than once results in empty object references later in the list.
To use an index position (rather than an object reference) to specify the object to be removed, call Delete.
To remove an object from the list without freeing it, call Extract.