You need to read the input as a character string. Then look at the string and make sure every character is a digit. If so, convert to integer, if not display an error.
WaltP
Posting Sage w/ dash of thyme
10,506 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944