TFPObjectList.Remove¶
Remove an item from the list.
Declaration¶
Source position: contnrs.pp line 60
public
function TFPObjectList.Remove(AObject: TObject) : Integer;
Description¶
Remove removes Item from the list, if it is present in the list. It frees Item if OwnsObjects is True, and returns the index of the object that was found in the list, or -1 if the object was not found.
Note that only the first found object is removed from the list.
Errors¶
None.
See also¶
| Name | Description |
|---|---|
| TFPObjectList.Pack | Remove all Nil references from the list. |
| TFPObjectList.Clear | Clear all elements in the list. |
| TFPObjectList.Delete | Delete an element from the list. |
| TFPObjectList.Extract | Extract an object from the list. |