Sign in Join
FPDoc Onlineexperiment

TFPSList.Remove function

Member of TFPSListpublicIn unit fgl

Remove the item from the list.

Declaration

pascal
function Remove(Item: Pointer): Integer

Arguments

Item

Removed item.

Function result

Index of removed item.

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 Extract must be used instead.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.