TFPObjectList.Extract¶
Extract an object from the list.
Declaration¶
Source position: contnrs.pp line 59
public
function TFPObjectList.Extract(Item: TObject) : TObject;
Description¶
Extract removes Item from the list, if it is present in the list. It returns Item if it was found, Nil if item was not present in the list.
Note that the object is not freed, and 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.Remove | Remove an item from the list. |
| TFPObjectList.Delete | Delete an element from the list. |