SetArrayBounds Function
- Updated2025-07-21
- 1 minute(s) read
SetArrayBounds Function
Syntax
Number SetArrayBounds(Array array, String lowerBounds, String upperBounds)
Return Value
This function always returns 0.
Purpose
This function changes the bounds of an array. You can use this function to change the size and/or the number of dimensions of an array. This function adds elements to or removes elements from the array as needed by the specified bounds. New elements added in this way will have the default value for the element type, and are added to the end of the array.
Parameters
array as Array
The array to redimension.
lowerBounds as String
A string specifying the index/indices of the new lower bound. Specify the array bounds as strings with the syntax "[i][j][k]", with an integer value in square brackets for each dimension of the source array.
upperBounds as String
A string specifying the index/indices of the new upper bound. Specify the array bounds as strings with the syntax "[i][j][k]", with an integer value in square brackets for each dimension of the source array.