List.RemoveRange(Integer, Integer) Method

Version: Available or changed with runtime version 1.0.

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

[Optional] 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
Get Started with AL
Developing Extensions