Skip to content

Latest commit

 

History

History
54 lines (41 loc) · 1.59 KB

list-getrange-integer-integer-method.md

File metadata and controls

54 lines (41 loc) · 1.59 KB
title description ms.author ms.date ms.topic author ms.reviewer
List.GetRange(Integer, Integer) Method
Get a shallow copy of a range of elements in the source.
solsen
05/14/2024
reference
SusanneWindfeldPedersen
solsen

List.GetRange(Integer, Integer) Method

Version: Available or changed with runtime version 1.0.

Get a shallow copy of a range of elements in the source.

Syntax

Result :=   List.GetRange(Index: Integer, Count: Integer)

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.

Return Value

Result
 Type: List of [T]
A shallow copy of a range of elements in the source List.

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

List Data Type
Get Started with AL
Developing Extensions