List.Set(Integer, T) Method
Version: Available or changed with runtime version 1.0.
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
[Optional] 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.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈