The number of dimensions in an Array object.

Property of

Array

Description

dimensions indicates the number of dimensions in an Array object. It is a read-only property.

You can use the resize( ) method to change the number of dimensions to one or two, but for more than two you would have to create a new array.

If the array has one or two dimensions, you can use the ALEN( ) function to determine the size of each dimension. There is no built-in way to determine dimension sizes for arrays with more than two dimensions.