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.
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
