G
Guest
I am getting odd behavior in my code, first I thought it was caused by SP1
but now I have the same issue with a vanilla version of VS 2005. When I
execute a function that contains an if statement. i.e.
Dim b As Boolean
Dim i As Integer = 0
If b then
i += 1 'point 1
msgbox(i.toString()) ' point 2
End If
the problem is even though the condition is false the code enters at point
2... and the messagebox appears... What the hell is up with that? I've look
up to see if there is anything online but can't find any answers. Closing VS
2005 doesn't work... Rebooting doesn't work... Can anyone help!
but now I have the same issue with a vanilla version of VS 2005. When I
execute a function that contains an if statement. i.e.
Dim b As Boolean
Dim i As Integer = 0
If b then
i += 1 'point 1
msgbox(i.toString()) ' point 2
End If
the problem is even though the condition is false the code enters at point
2... and the messagebox appears... What the hell is up with that? I've look
up to see if there is anything online but can't find any answers. Closing VS
2005 doesn't work... Rebooting doesn't work... Can anyone help!