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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top