vb.net - Need to catch if a string has a number in it vb -


I want to add a catch statement, to see that a number in the target is inputted in it.

  console.light line ("enter the word that you want to guess:") targetWord = Console.ReadLine  

If you want to know that the given string contains digits that you can use:

  dim input = Console ReadLine () 'For example: abc123def Dim dimensions = input.Where (if you want to ask the user for a new string, unless that number enters without any:  

P>

  while digits.Any () input = Console.ReadLine () Ncon = input.Where (address ending four .IsDigit) while  

Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -