Modifier

Partager via


List.Get(Integer) Method

Version: Available or changed with runtime version 1.0.

Gets the element at the specified index. This method will raise an error if the index is outside the valid range.

Syntax

Result :=   List.Get(Index: Integer)

Parameters

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

Index
 Type: Integer
The one-based index of the element to get.

Return Value

Result
 Type: T
The element at the specified index.

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