You're using it the wrongway,
I guess that you want to convert second to string so that you can view it ?
if so, you should do it this way : StrPrintF ( timeAsString, "%02d",
dateTime.second );
Cordialement,
Agus Silas
-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]De la part de Al
Smith
Envoy� : mardi 11 f�vrier 2003 17:47
� : Palm Developer Forum
Objet : Re: Little Help
Thanks Jeremy,
I try fixing it , but now im getting a low memory error..
I am using.
StrPrintF(" %s:%02d",timeAsString ,dateTime.second);
it compiles ,but crashes..any hints
>From: Jeremy Dewey <[EMAIL PROTECTED]>
>Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>Subject: Re: Little Help
>Date: Tue, 11 Feb 2003 08:45:02 -0800
>
>The trouble is with your call to StrPrintF - you are specifying two
>arguments in the format string, but only passing one.
Further, it is likely
>crashing or printing garbage because the value you are
passing is a number
>but is being interpreted as a string.
>
>Jeremy
>
>At 2/11/2003 08:33 AM, you wrote:
>>G' day all,
>>
>>I am having a little trouble printing out the seconds in this routine
>>, can anyone tell me whats wrong with it..
>>
>>[snip]
>>
>>StrPrintF(" %s:%02d" ,dateTime.second);
>
>
>--
>For information on using the Palm Developer Forums, or to
unsubscribe,
>please see http://www.palmos.com/dev/support/forums/
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail
--
For information on using the Palm Developer Forums, or to
unsubscribe, please see http://www.palmos.com/dev/support/forums/
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/