I have a bit of code that I use to weed out letters in a string. The String must be all numbers and spaces but sometimes a letter sneaks in. Right now I just iterate the string character by character using the ascii equivalent. If it comes across a letter it closes and reports an error.
Is there a small elegant way to run this with as little code as possible?
Thanks
Is there a small elegant way to run this with as little code as possible?
Thanks