From: "Brian O'Grady":

>      gstrDisplayDate  = MemPtrNew(StrLen(recordP->DisplayDate)+1);
>      StrCopy(gstrDisplayDate, recordP->DisplayDate);
>      WinDrawChars(gstrDisplayDate,StrLen(gstrDisplayDate),5,120);

Assuming that DisplayDat is an integer, instead of StrCopy, use StrPrintF,
e.g.:

StrPrintF( gstrDisplayDate, "%d", recordP->DisplayDate );

For other data types, use something other than d in the "%d".  See the notes
under StrVPrintF in "The Palm OS SDK Reference" (Reference.pdf) for all the
supported codes.


Reply via email to