SetNumElements Function
- Aktualisiert2025-07-21
- 1 Minute(n) Lesezeit
SetNumElements Function
Syntax
Number SetNumElements(Array array, Number numElements)
Return Value
This function always returns 0.
Purpose
This function sets the number of elements in a one-dimensional array. It preserves the lower bound and the values of all elements that can fit within the new array. Any new elements added to the array have the default value for the element type and are added to the end of the array.
Parameters
array as Array
A one-dimensional array to resize.
numElements as Number
The desired number of elements.