List.RemoveRange Method

Removes a range of elements from the List.

Syntax

[Ok := ]  List.RemoveRange(Index: Integer, Count: Integer)

Parameters

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

Index
 Type: Integer
The one-based starting index of the range of elements to remove.

Count
 Type: Integer
The number of elements to remove.

Return Value

Ok
 Type: Boolean
true if the range is a valid range, otherwise false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.

See Also

List Data Type
Getting Started with AL
Developing Extensions