> i want to format a integer output to 4 digits. ("Card 0001","Card 0002"
...)
> i tried this one .. but i doesn't work ....
>
> StrPrintF(NewCard.title,"Card %4d",number);

StrPrintF(NewCard.title, "Card %04d", number);

  you might have issues with %d if it is an UInt32 :) try %lu then.

> How is it done right ? Searched the net, but didn't found the answer :(

  man pages? :-) StrPrintF() is a replacement for [sf]printf() :)

http://www.mkssoftware.com/docs/man1/printf.1.asp

  you obviously didn't look hard enough :)

--
Aaron Ardiri
CEO - CTO
Mobile Wizardry
http://www.mobilewizardry.com/


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

Reply via email to