Simply have a variable thats get set to True when you want to exit. Then
in the Event loop do
Repeat // Until DoStop is set to True
EvtGetEvent(Event, evtWaitForever);
if not SysHandleEvent(Event) then
if not MenuHandleEvent(MyMenu,Event,Error) then
if not FrmDispatchEvent(Event) then
if not HandleEvent(Event) then ;
Until DoStop or (Event.eType = appStopEvent);
--
Christen Fihl
http://HSPascal.Fihl.net/
"Farzin Ashraghi" <[EMAIL PROTECTED]> wrote in message
news:61328@palm-dev-forum...
>
> Hi friends:
>
> I know that is possible to call a secondary app from a main one, but
how can
> I return to the main app programatically?
>
> Another question, is is possible to simulate a button press in the
secondary
> app?
>
> Thanks,
> Farzin
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/