TypeInfo.GetArrayRank

From Xojo Documentation

Method

TypeInfo.GetArrayRank() As Integer

Supported for all project types and targets.

Returns the number of dimensions of the item. GetArrayRank is valid only if IsArray is True. If the datatype is not an array, then calling GetArrayRank will raise an exception.