With this code:
I get this error:VB Code:
[COLOR=Red]Do Until (CInt(lblDiv1.Text) * 2) > lblDiv2.Text[/COLOR] lblDiv1.Text = Math.Round(RandomNo.Next(1, 24) * 2) lblDiv2.Text = Math.Round(RandomNo.Next(1, 24) * 2) Loop
An unhandled exception of type 'System.InvalidCastException' occurred in microsoft.visualbasic.dll
Additional information: Cast from string "" to type 'Integer' is not valid.
So what is wrong. I don't see a problem there...Does CInt only work when there is an integer already in lblDiv1?




Does
I'm just kidding...
Reply With Quote