RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomBucketList.DeleteItem Method

Deletes an item from a bucket in the bucket list.

Pascal
function DeleteItem(ABucket: Integer; AIndex: Integer): Pointer; virtual;
C++
virtual __fastcall void * DeleteItem(int ABucket, int AIndex);

TCustomBucketList uses DeleteItem to remove items from the bucket list. DeleteItem removes the specified item from the specified bucket and moves all items that came after the deleted item up by one position within the bucket. 

ABucket is the bucket that contains the item to delete. 

AIndex is the index of the item to delete within the bucket specified by ABucket. 

DeleteItem returns the data associated with the deleted item. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!