Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Checking to Make Sure No Characters Were in the Numerical Input

$
0
0
Hey, I am making a simple program and I am trying to have a user input a number. Whenever there is an alphabet character in the number, I want it to have an error message. I have tried to do this by a try and catch statement, but that doesn't work. Am I doing that wrong or if there is another way to do this?

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>