[Overview][Resource strings][Constants][Types][Classes][Procedures and functions][Index] |
Removes the object at a specified position and (if OwnsObject is True) frees the object
Source position: tiObject.pas line 634
public procedure TtiObjectList.Delete( |
i: Integer |
); virtual; |
Call Delete to remove the object at Index from the list. (The first object is indexed as 0, the second object is indexed as 1, and so forth.) After an object is deleted, all the objects that follow it are moved up in index position and Count is decremented.
To use an object reference (rather than an index position) to specify the object to be removed, call Remove.
If OwnsObjects is True, Delete frees the object in addition to removing it from the list. To remove an object from the list without freeing it, call Extract
|
Removes the specified object from the list without freeing the object |