Cherlene Lim wrote:
> if i'm going to update the selector trigger in this function...how
>should i go abt doing it...(sorry that i'm just a beginner..thus i dun
>really know how to declare ur function in my function)
It sounds like you're a beginner in C as well as Palm programming: I
would strongly recommend that you take a class in C, or read a good
beginner book about C, or at least borrow heavily from existing example
programs.
>n i have to set
>the label to a string "desc updated"..can i do it like this
>char gSelectorTriggerLabel[255]="desc update";
That works the very first time: you've just reserved space for the
string, and then set it's intitial value to "desc update". That line
should NOT be in your function, BTW, but should be at the top of the
file, all by itself.
If you want to change the string later, do this:
StrCopy( gSelectorTriggerLabel, "whatever string you like" );
Once you've changed the global string, then call the routine I sent
before to change the control label.
> case frmDetailsSelIngredientsSelTrigger:
> {
> FrmGotoForm(FrmIngredientForm);
>
> handled = true;
> break;
> }
This doesn't do anything to the string or the control label...
Hope this helps a little. Again, I really can't encourage you enough to
learn more about C...and this isn't the right forum to do it in :-)
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html