Julia, The usual way to launch an app to perform a specific action is via a custom launch code. If you look in the Palm OS programmers companion volume 1 "Application Start-up and Stop / Creating your own launch codes" There is a large block of available launch codes available. cmdPBP can be just about anything, the launch code indicates what sort of data structure the app should expect to be there.
John On Thu, 2005-05-19 at 10:18, Orasanu Iuliana wrote: > This function has this prototype > Err SysUIAppSwitch (UInt16 cardNo, LocalID dbID, UInt16 cmd, MemPtr cmdPBP) > I want my application to do something else depinde on the reason that I'm > calling it. > Let's say that 1-rst I want to do: FrmGoTo (MainFrom); -> make a loop here > and exit when the user taps the exit button. > and at another point in my code I want it to make: FrmGoTo(SecondForm); -> > show something here and then exit. > Theese calls are made in some alarmtriggers. > > I want to use SysUIAppSwitch (cardNo, dbID, sysAppLaunchCmdNormalLaunch, > NULL); > and instead of NULL in the last param I want to put a variable so in > PilotMain I want to make a switch case from the cmdPBP variable; > > Is this a good idea? > > Can someone tell me what form the cmdPBP for SysUIAppSwitch should have? > > I wanted to do something more clever like making my own cmd call - but the > docs are very easy in information... > > Thanx for the help. > > Regards, Iulia -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
