Hey! I am new to coding for the Palm Os platform. I have code warrior and I am writing 
a simple addition program to get use to coding for the palm os platform. I have 
figured out the button down event and things like that but am having trouble changing 
the text property of a label and a field through code.

          I have two fields for the user to type in a number in each. From there I 
have it so that when the user clicks the "ADD" button it performs an adding operation.

   My add function looks like this.

static int Add(Int x, Int y)
{
return(x+y);
}

Then in the cltEnterEvent under my "Add" button code I said

int c;
Add(MainNum1Field,MainNum2Field);

// This is now where the MainAnswerField text needs to display c.

c is the integer and will be the sum of the MainNum1Field and MainNum2Field.

MainAnswerField is where the value a c needs to be displayed. 

              Can someone PLEASE tell me how to change the text of the 
MainAnswerField? Thanks!

                                                      GOD Bless!!!

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