TFPGInterfacedObjectList.Remove
Remove an object from the list.
Declaration
Source position: fgl.pp line 241
public
function Remove(const Item: T) : Integer;
Description
Remove removes the object Item from the list, and returns the index of the removed item. If no item was removed, -1 is returned. Only the first object is removed.
Removing an object from the list may cause the object to be freed.
Errors
None.
See also
Name | Description |
---|---|
TFPGInterfacedObjectList.FreeObjects | |
TFPGInterfacedObjectList.IndexOf | Index of object |
TFPSList.Delete | Delete an item from the list |