At 06:00 AM 1/28/2002 -0800, Phong Nguyen wrote:
>Thanks. The one you showed work! However, I still
>encounter the following problem:
>
>StrPrintF(msg, "%02X", byCheckSum);
>
>Assuming byCheckSum = 0xB9
>
>Instead of printing the string "B9", it printed
>"000000B9". Please let me know how to fix this
>problem. Thanks.

I've run into this also.  Unfortunately it seems to be the documented behavior:

An integer argument is converted to hexadecimal notation. Example:
StrPrintF(s,"%x",125);
Output to s:
0000007D

Regards,
Bob


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to