RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TList.Extract Method

Removes a specified item from the list.

Pascal
function Extract(Item: Pointer): Pointer;
C++
__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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!