Dynamic Array Sizing
- Updated2026-04-01
- 1 minute(s) read
You can resize an array during execution. In an expression, use the GetNumElements and SetNumElements expression functions to obtain and modify the upper and lower bounds for a one-dimensional array. For multi-dimensional arrays or to change the number of dimensions in the array, use the GetArrayBounds and SetArrayBounds expression functions. The Operators/Functions tab of the Expression Browser dialog box includes documentation for each expression function.
In a code module, use the PropertyObjectType.ArrayDimensions method to obtain or specify the upper and lower bounds of an array or to change the number of dimensions in the array.