开发者

VB2010 - For Loop Exiting Issue

I have a simple for loop with the following code

 For i As Integer = 0 To 4
            Snake(i).X = (120 - 20 * i)
            Snake(i).Y = 120
            SnakeBody(i).Location = New Point(Snake(i).X, Snake(i).Y)
            Snake(i).Facing = 3
        Next i

But for some reason I unable to debug it. I place a breakpoint on the line Snake(i).X = (120 - 20 * i) and When I try to see开发者_如何学JAVA what the values are the second time the loop iterates it simply exits the loop. Any Ideas?

Thanks


Place a breakpoint on the first line of the loop and step through it line by line.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜