In this case, however, you'd need to do:
code:
Dim $b[1,2,3,4]
$dimensions = Ubound(Ubound($b)) + 1

..to obtain the number of dimensions in an array.

I like it, though.
_________________________
================================================
Breaker