RAD Studio VCL Reference
TList.Extract Method

Removes a specified item from the list.

function Extract(Item: Pointer): Pointer;
__fastcall void * Extract(void * Item);

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++). 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!