From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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.