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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -