> From: Rene
>
> I have a pointer to a string and I will like to know if the
> string contains only numbers. Is there an easy way of doing this?
>
Pseudocode:
numeric = true
for i from 0 to (length of string - 1)
if string[0] is not in {'0'..'9'} then
numeric = false
continue
Isn't that easy enough?
Palm OS provides the TxtCharIsDigit(ch) and TxtGlueCharIsDigit(ch) macros to
assist you.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/