I was trying to figure out how to make an infinite loop to verify that a user input was a string. I however found out that when I would test the program by entering a number, the console would deem the string as an input. How do you rectify this?
Btw here is the code I was working on:
Dim input As Object
Do
Try
input = Console.ReadLine()
Catch
Console.WriteLine("Error - Input was Invalid")
input = Console.ReadLine()
End Try
Loop Until TypeOf input Is String