Brilliant! So obvious now that you've stated it.
I've seen other solutions that try to use SysUIAppSwitch() that seem silly,
now.

-Nullife

"Christen Fihl" <[EMAIL PROTECTED]> wrote in message
news:61342@palm-dev-forum...
>
> 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/




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