Skip to content

TFPHashObjectList.Remove

Remove first occurrence of a object instance.

Declaration

Source position: contnrs.pp line 329

public 
function TFPHashObjectList.Remove(AObject: TObject) : Integer;

Description

Remove removes the first occurrence of the object instance Item in the list, if it is present. The return value is the location of the removed object instance, or -1 if no object instance was removed.

If OwnsObjects is True, then the object itself is also freed from memory.

See also

Name Description
TFPHashObjectList.Delete Delete an object from the list.
TFPHashObjectList.Clear Clear the list.
TFPHashObjectList.Extract Extract a object instance from the list.