Hi
You are trying to compare a numeric with a string and then put a numeric into a string. Use
VB Code:
Do Until (CInt(lblDiv1.Text) * 2) > CInt(lblDiv2.Text) lblDiv1.Text = Math.Round(RandomNo.Next(1, 24) * 2).ToString lblDiv2.Text = Math.Round(RandomNo.Next(1, 24) * 2).ToString Loop




Reply With Quote