System.Classes.TList.Extract

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Extract(Item: Pointer): Pointer; inline;

C++

void * __fastcall Extract(void * Item);

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes TList

Description

Removes a specified item from the list.

Call Extract to remove an item from the list. After the item is removed, all the objects that follow it are moved up in index position and Count is decremented.

To remove the reference to an item without deleting the entry from the Items array and changing the Count, set the Items property for Index to nil (Delphi) or NULL (C++).

See Also