List.Remove(T) Method

Version: Available or changed with runtime version 1.0.

Removes the first occurrence of a specified value from the List.


[Removed := ]  List.Remove(Value: T)


 Type: List
An instance of the List data type.

 Type: T
The value to remove from the List.

Return Value

[Optional] Removed
 Type: Boolean
true if item is successfully removed; otherwise, false. This method also returns false if item was not found in the List.


The type T is a dynamic type. When List is of type Text then T will change to Text. When List is of type Integer, then T will change to Integer.

See Also

List Data Type
Get Started with AL
Developing Extensions