JSY wrote:
Hi. I got 3 forms in my application and i keep getting an error message that says the below about one of my forms. The other two forms are ok. Why is this? Please help. What is wrong?
"Error : undefined identifier 'WelcomeFormHandleEvent' Restaurant.cpp line 240 FrmSetEventHandler(frmP, WelcomeFormHandleEvent);"
My codes in AppHandleEvent are attached below.
Please help. Thanks ...
Yours truly, JSY
_______________
static Boolean AppHandleEvent(EventPtr eventP) {
|
|
switch (formId)
{
case WelcomeForm:
FrmSetEventHandler(frmP, WelcomeFormHandleEvent);
break;
case MainForm:
/* *Clear previous values of global variables before entering the *MainForm again
*/
chickenBoolean = false;
beefBoolean = false;
chickenQuantity = "";
beefQuantity = "";
toSend = "";
FrmSetEventHandler(frmP, MainFormHandleEvent);
break;
case TQForm:
FrmSetEventHandler(frmP, TQFormHandleEvent);
break;
| | }
Did you wrote WelcomeFormHandleEvent? Did the compiler knows about this function when he arrives the "FrmSetEventHandler(frmP, WelcomeFormHandleEvent);" line?
Regards Henk
-- ------------------------------------------------------------------------- Henk Jonas [EMAIL PROTECTED] Palm OS Â certified developer
Please contact me, if you need an off-side contract worker. -------------------------------------------------------------------------
To unsubscribe send an email to [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
