Your loop is equivalent to
Dim t = 10 And 50
For i As Integer = 0 To t
' something '
Next
where 10 And 50
is a bitwise AND
operation on two Integer
numbers. And because 10 And 50
returns 2
you get loop from 0
to 2
.