Hello,
How could I ensure that the data entered in the following code is numerical?
Sorry if it's a bit of a noobish question, it's a rather new language to me, lol.
Many Thanks,
Adam.
How could I ensure that the data entered in the following code is numerical?
VB.NET:
Console.Write(CurrentPlayer & " enter x coordinate: ")
XCoordinate = Console.ReadLine()
Console.Write(CurrentPlayer & " enter y coordinate: ")
YCoordinate = Console.ReadLine()
Console.WriteLine()
Sorry if it's a bit of a noobish question, it's a rather new language to me, lol.
Many Thanks,
Adam.