RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TClassList.Extract Method

Removes a class from the list.

Pascal
function Extract(Item: TClass): TClass;
C++
__fastcall TClass Extract(TClass Item);

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

In TClassList, Extract does the same thing as the Delete method, except that it returns the class that was removed from the list. 

To remove the reference to a class 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!