ArrayDim ( ByRef Arr_ID )

Returns the number of dimensions in an array.

Example:
    Dim x [ 5, 4 ]
    ArrayDim ( x )

This will return 2.