|
Am i missing something here, or is this the hen before the egg ?
Can you use ReDim Preserve to add dimensions to an array, if not you should know the number of dimensions, you made the array yourself.
Can you ReDim one of the dimensions by choice, like ReDim Preserve Array[1], Preserve Array[2] This one should be possible according to the manual, but i havn't tested (understood the syntax)
Should this be valid for redimming the third dimension: ReDim Preserve ,, Preserve Array[2]
I like this solution for the UBound() function:
UBound($Array) Returnes number of members or number of dimensions
For multidimensions arrays, retrieve number of members in dimension 1: UBound($Array[0])
I belive the discussion could be how do we determine if the result from: UBound($Array) is number of dimensions or number of elements ?
I wil add a new suggestion for the function to determine the number of dimensions of an array: NumDim($Array) Should return 0 if $Array is not declared or not an array, otherwise 1.. to number of dims.
-Erik
|