System.Classes.TList.Remove
Delphi
function Remove(Item: Pointer): Integer; inline;
C++
int __fastcall Remove(void * Item);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TList |
Description
Deletes the first reference to the Item parameter from the Items array.
Call Remove to remove a specific item from the Items array when its index is unknown. The value returned is the index of the item in the Items array before it was removed. After an item is removed, all the items that follow it are moved up in index position and the Count is reduced by one.
If the Items array contains more than one copy of the pointer, only the first copy is deleted.
See Also
Code Examples