List.Get(Integer, var T) Method
Version: Available or changed with runtime version 1.0.
Gets the element at the specified index.
Syntax
[Ok := ] List.Get(Index: Integer, var Result: T)
Parameters
List
Type: List
An instance of the List data type.
Index
Type: Integer
The one-based index of the element to get.
Result
Type: T
The element at the specified index.
Return Value
[Optional] Ok
Type: Boolean
true if an element exists at the given index, otherwise false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.
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
.
See Also
Commentaires
https://aka.ms/ContentUserFeedback.
Prochainement : Tout au long de l'année 2024, nous supprimerons progressivement les GitHub Issues en tant que mécanisme de retour d'information pour le contenu et nous les remplacerons par un nouveau système de retour d'information. Pour plus d’informations, voir:Soumettre et afficher des commentaires pour