As others have already said, it isn't clear what number you're looking for. The routine you're using is for parsing base 10 integers. There is a corresponding routine for parsing hexadecimal integers. Apparently, what you want to do is something entirely different. If you're trying to convert a 4 character creator code to a UInt32, then you want what might be called base 256. This can easily be coded up, but there is no OS support for it. Read one digit at a time. Start with a zero result. Before adding in the next "digit", shift the result by 8 (multiplying it by 256). Then add in the next "digit". Repeat 4 times and you've filled your UInt32. Of course, that will only handle a 4 character string, but that's the way it goes. -- Peter Epstein
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
