I'm writing out a new record to the memo pad, and it's going swimmingly.  
However, the record isn't sorted when the memo pad preference is 
"alphabetic".

What's the Right Way to get memo pad records to sort?  I've searched the 
knowledge base and dug around the news archives, etc., but haven't come 
up with the right search criteria apparently.

Browsing the memo source code indicates that launching it with a sync 
notification would do the trick, but is this the Right Way?  If so...this 
code is on the Knowledge Base:

static void MainGotoApplication()
{
        LocalID theDBID;
        UInt theCardNo;
        DmSearchStateType theSearchState;
        
        // Grab the id of the application we want to launch (the memo pad)
        DmGetNextDatabaseByTypeCreator(true, &theSearchState, 
sysFileTApplication, sysFileCMemo, true, &theCardNo, &theDBID);
        
        // Launch the new app.
        SysUIAppSwitch(theCardNo, theDBID, sysAppLaunchCmdNormalLaunch, NULL);
}

Can I just replace sysAppLaunchCmdNormalLaunch with 
sysAppLaunchCmdSyncNotify and have everything work correctly?


Thanks,
Lee

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