--- "Wischnewski, Berndt" <[EMAIL PROTECTED]> wrote: > The program should come up several times a day, and then > the subject should answer questions. So far I thought that > an Alarm, maybe, or not with an Attention would be a good idea. > But after the alarm, my application comes up with an > > sysAppLaunchCmdAlarmTriggered > > event and with no global variables. I could easily refill my > globals in this situation, but there are really nonexistent. > I tried to restart my application with SysAppLaunch(...), but > this doesnt restart but just jump in again in the main routine, > also without global variables.
If you want your app to be able to resume at the place it was the last time it ran, you need to save state information (what form was active, the values of important variables, etc.). The common way to do this is by using PrefGetAppPreferences() in your AppStart() and PrefSetAppPreferences() in your AppStop(). __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
