List.Set Method

Sets the element at the specified index.

Syntax

[Ok := ]  List.Set(Index: Integer, NewValue: T)

Parameters

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

Index
 Type: Integer
The one-based index of the element to set.
NewValue
 Type: T
The new value associated with the specified index.

Return Value

Ok
 Type: Boolean
true if the index was within the valid range, false otherwise. 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