Mid Procedure

Creates a new list from consecutive elements in list starting at index start. The returned list has at most count elements; it may have less if count exceeds the number of elements in list.
Declaration
function Mid(
list as List of T, start as Number, count as Number
) as T

Parameters

Return value

A list containing at most count elements starting at index start.

Example

This example program constructs a list and then constructs a list of three of its elements.
Code
sub Main()
dim myList = [1, 2, 3, 4, 5]
dim newList = Mid(myList, 1, 3)
for each element in newList
print element
next
end sub
Output
2
3
4