Array Bounds Dialog Box
- Updated2025-07-21
- 1 minute(s) read
Array Bounds Dialog Box
Click the Bounds tab of the Type Properties dialog box to launch the Array Bounds dialog box, in which you can modify the array bounds. You can also launch the Array Bounds dialog box by selecting Insert Local on the Locals tab to insert a local array variable.
The Array Bounds dialog box contains the following options:
- Dimensions String —Shows a string that describes the array dimensions.
- Number of Dimensions —Sets the number of dimensions in the array. The maximum number of dimensions is 16.
- Empty —Indicates that the array has no elements when you start execution. When you enable this option, the Upper Bounds control for each dimension dims. Enabling this option is useful when you do not know the maximum array size the sequence requires during execution or when you want to save memory during the periods of execution when the sequence does not use the array.
-
Lower Bounds
and
Upper Bounds
—Sets the minimum and maximum index for each dimension. For example, you can define one as dimension zero-based and another dimension as one-based. The Upper Bounds setting must be greater than or equal to the Lower Bounds setting for the same dimension. You can calculate the number of elements in each dimension according to the following formula:
Upper Bounds - Lower Bounds + 1
Note
The number of controls that appear next to the Lower Bounds and Upper Bounds labels varies according to the setting of the Number of Dimensions control.