Sign in Join
FPDoc Onlineexperiment

TList.Extract function

Member of TListpublicIn unit Classes

Remove the first occurrence of a pointer from the list.

Declaration

pascal
function Extract(item: Pointer): Pointer

Description

Extract searched for an occurrence of item, and if a match is found, the match is deleted from the list. If no match is found, nothing is deleted. If Item was found, the result is Item. If Item was not found, the result is Nil. A lnExtracted notification event is triggered if an element is extracted from the list.

See also

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