> 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

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

Reply via email to