<p>How can I find out the number of dimensions in an array in Classic ASP ( VBScript ) .</p>

<p>I am being passed an Array with multiple dimensions but I only want to look at the last. Seems easy in other languages.</p>

```
```
Ubound(MySingleDimensionalArray, 2) ' Number of Array Elements

Ubound(MyMultiDimensionalArray, 1)  ' Number of Columns
Ubound(MyMultiDimensionalArray, 2)  ' Number of Rows
```
```