Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

validation- is it a number

 
David Shepherd
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am looking for the easy way to validate a string and take action if the input string is a number (or can be parsed into a number). Is there an easy way to check a string to see if it can be turned into an integer?
Thanks.
 
Angela Lamb
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are functions in the Integer class for this:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic