Check if String is a number

  • Thread starter Thread starter Jose Ines Cantu Arrambide
  • Start date Start date
J

Jose Ines Cantu Arrambide

Hi,
Is there a function that can check if a string can be parsed to an int?
(Without using try{}catch{})

Thanks,
Jose.
 
Jose said:
Hi,
Is there a function that can check if a string can be parsed to
an int? (Without using try{}catch{})

Check the documentation on double.TryParse. It returns a bool indicating
whether the string was successfully parsed.

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com
(Pull the pin to reply)
 
Back
Top