From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function Remove(Item: Pointer): Integer; inline;


int __fastcall Remove(void * Item);


Type Visibility Source Unit Parent
function public
System.Classes TList


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