> prompts, and the user can choose to Cancel and return to the form. How can I
> achieve this? I tried FrmReturnToForm, FrmSetActiveForm but it won't work
> since the command will be in the AppStop() function. Please give me some
> ideas.. thanks!
You have to go back to the event loop. The following code (untested :-)
shoud accomplish somthing along the line...
Boolean AppStop() {
...
case SaveChangeCancel:
return false;
}
FrmCloseAllForms(); // should be called *after* decision
// don't deallocate global data before this point
return true;
}
> FrmGotoForm(MainForm);
> AppEventLoop();
> AppStop();
> break;
would become
FrmGotoForm(MainForm);
while(true) {
AppEventLoop();
if( AppStop() ) break;
FrmGotoForm( some form ); // might be optional :-)
}
break;
With kind regards / Mit freundlichem Gru�
Holger Klawitter
--
Holger Klawitter
[EMAIL PROTECTED] http://www.klawitter.de
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/