IList.Remove

Syntax

Remove(Value: Variant);

Parameters

Value. Value of the element that should be removed.

Description

The Remove method removes the element, which value is passed by the input parameter.

Example

Sub UserProc;
Var
    ArrayL: IArrayList;
    i: Integer;
Begin
    ArrayL := 
New ArrayList.Create;
    
For i := 0 To Math.RandBetweenI(0100Do
        ArrayL.Add(Math.RandBetweenI(
050));
    
End For;
    ArrayL.Remove(
50);
End Sub UserProc;

After executing the example a dynamic array with random values is created, and the element with the 50 value is deleted if it exists.

See also:

IList