List.Remove(T) Method

Version: Available or changed with runtime version 1.0.

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

Syntax

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

Parameters

List
 Type: List
An instance of the List data type.

Value
 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.

Remarks

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.

List Data Type
Get Started with AL
Developing Extensions