I don't understand why this code works, given that the variable 'i' hasn't been dimmed at any point. I know that variables will default to being a certain data type, at least when declared explicitly, but I can't figure out 'i' here given that it hasn't been:
Sub Test
Const d1 = 1
Const d2 = 1
Const d3 = 0
Dim a(d1, d2, d3)
For Each i In a()
Msgbox "Yes"
Next i
End Sub
Thanks
Tags: