Skip to content

TFPSList.Remove

Remove the item from the list

Declaration

Source position: fgl.pp line 89

public 
  function Remove(Item: Pointer) : Integer;

Description

Remove searches Item in the list, and deletes it from the list. It returns the index of the item that was removed, or -1 if it was not found. Only the first match is removed.

If a descendent of TFPSList owns the object of the list, the item is removed from memory. If this is not desired, then TFPSList.Extract must be used instead.

See also

Name Description
TFPSList.Extract delete an element from the list
TFPSList.IndexOf Search an item in the list