List.GetRange(Integer, Integer, var List of [T]) Method
Version: Available or changed with runtime version 1.0.
Get a shallow copy of a range of elements in the source.
Syntax
[Ok := ] List.GetRange(Index: Integer, Count: Integer, var Result: List of [T])
Parameters
List
Type: List
An instance of the List data type.
Index
Type: Integer
The one-based List index at which the range starts.
Count
Type: Integer
The number of elements in the range.
Result
Type: List of [T]
A shallow copy of a range of elements in the source List.
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.
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
.
For examples on shallow copy versus deep copy, see List Data Type.
See Also
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour