Arrays. Assigning a value.

BlitzMax Forums/BlitzMax Beginners Area/Arrays. Assigning a value.

For Local x:Int = 0 To 9
	
	For Local y:Int = 0 To 9
	
		array:Int[x,y] = 0
		
	Next
	
Next

array:Int[2,6] = 1


I have a for/next loop which fills my array with 0's.

This line here "array:Int[2,6] = 1" should assign the value 1 to that position in the array. NO!