how can I fix it

Eric W. Sirko wrote:

> From: "Eric W. Sirko" <[EMAIL PROTECTED]>
> Subject: Re: Can anyone tell me whats going on here
> Date: Mon, 29 Oct 2001 11:00:31 -0800
> To: "Palm Developer Forum" <[EMAIL PROTECTED]>
> 
> 
> "Johnathan Smith" <[EMAIL PROTECTED]> wrote in message
> news:66260@palm-dev-forum...
>> 
>> Below is a listed on my code that will put a number in
>> a text field and display a Dialog Form.  The form
>> displays right and the user can enter the new number
>> but on the way back drow shows the right number in the
>> debugger but return_drow gets set to 3 and
>> return_weight gets set to 0
>> 
>> Can someone please help
>> 
>> static void displayRowOptions()
>> {
>>     Char drow[5];
>>     Char return_drow[5];
> 
> [snip]
> 
>> StrPrintF( return_drow, "%d", drow);
> 
> This call to StrPrintF might be your problem.  Your format string is "%d,"
> so StrPrintF is interpreting the third argument as an integer.  But you're
> passing a string.
> 
> 
> Eric W. Sirko
> Softworks Solutions, LLC
> 
> 
> 
> 
> --
> For information on using the Palm Developer Forums, or to unsubscribe, 
> please see http://www.palmos.com/dev/tech/support/forums/

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
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