Remove(Value: Variant);
Value. Value of the element that should be removed.
The Remove method removes the element, which value is passed by the input parameter.
Sub UserProc;
Var
ArrayL: IArrayList;
i: Integer;
Begin
ArrayL := New ArrayList.Create;
For i := 0 To Math.RandBetweenI(0, 100) Do
ArrayL.Add(Math.RandBetweenI(0, 50));
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: