--- [EMAIL PROTECTED] wrote: > > I am currently trying
to write up a program in
> > metrowerks and link it to Simulator. This i have
> > achieved, however i am trying to take the numbers
> i
> > have entered in the numeric text field and simply
> add
> > them. can anyone please help!!
> > 
> Are you having a specific problem with your code
> or just not sure how to add two numbers entered
> as text?
> 
> A skeleton would be:
> - obtain a reference to the text buffer for the
> field,
> - that gives you a string to pass to StrAToI
> (assuming
>   all necessary defensive coding).  That's fine for
>   integers but for real numbers you'll need another
>   conversion function (I'm sure they've been posted
>   to this forum before),
> - do this for both fields to get two numbers,
> - add the numbers.
> 
> Chris
> Tutty
> 

Hi Chris,
i think that you change the numbers in the text fields
to numeric values, i'm having probles calling these
from the c program itself just to add them. i have
generated a stationart project and i'm trying to input
this code, (to add two numbers) into it. Can you
help????  


> ------------------------------------------------
> This message was sent using InSPire Net Webmail.
> http://www.inspire.net.nz
> 
> 
> 
> -- 
> For information on using the Palm Developer Forums,
> or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/ 


        
        
                
___________________________________________________________
BT Yahoo! Broadband - Free modem offer, sign up online today and save �80 
http://btyahoo.yahoo.co.uk

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

Reply via email to