Thanx very much guys!!! I assumpted to much.. sorry .....
Best Regards, Brian
Ben Combee wrote:
At 01:26 AM 10/7/2003, Brian wrote:
wow! sorry i miss that out.. ya your absolutely right... i thought i can pass a string to StrAToI()...
You can, but the string has to be a string holding a base-10 number... passing "1024" would be OK and would return 1024. Passing "hello!" doesn't make sense to StrAToI, so the OS just returns 0. If you need to validate the string, you ought to write your own ASCII-to-integer conversion that can return an error or tell you where it finished parsing the number.
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
