help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TList.Extract

Remove the first occurrence of a pointer from the list.

Declaration

Source position: classesh.inc line 216

public function TList.Extract(

  item: Pointer

):Pointer;

Description

Extract searched for an occurence 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. Note that a lnDeleted event will also occur.

See also

TList.Delete

  

Removes a pointer from the list.

TList.IndexOf

  

Returns the index of a given pointer.

TList.Remove

  

Removes a value from the list.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505