array bounds
BlitzMax Forums/BlitzMax Beginners Area/array bounds| 
 | ||
| I know this is a silly question, but, how can I get the upper bound of a unidimensional array? | 
| 
 | ||
| Local ThisArray:Int[1,2,3] Local ArrayDim:Int[] ArrayDim = ThisArray.Dimensions() Print ArrayDim[0]+" "+ArrayDim[1]+" "+ArrayDim[2] | 
| 
 | ||
| .Dimensions()[0] As it returns an array with all dimensions if you have a multidimensional array. | 
| 
 | ||
| Thanks! |