That could be because:
"Currently, only the %d, %i, %u, %x and %s are implemented and don't accept
field length or format specifications except for the l(long) modifier"

I guess you can't use the '4' before the d

D
-----Original Message-----
From: Gordon, Douglas <[EMAIL PROTECTED]>
To: 'Palm Developers' <[EMAIL PROTECTED]>
Date: Thursday, December 09, 1999 8:06 AM
Subject: StrPrintF


>Is there any strangeness about the "StrPrintF" function, perhaps on
specific
>PalmOS versions? I have the following statement in my program:
>
>    StrPrintF(ac_Txt, " %4d", s_Year);
>
>Where "ac_Txt" is a char[10] string and "s_Year" is a Short. The resulting
>string, "ac_Txt", is then displayed in a table cell. This works on my Palm
>IIIx and apparently most other people's units. However, I'm getting reports
>from some customers that they are seeing the characters "4d" appear in the
>field instead of the number that they are expecting. This sounds like
>StrPrintF is copying the format string directly to the field instead of
>applying the formatting to the integer variable. Any ideas why this might
>happen on particular units?
>
>  Doug Gordon
>


Reply via email to