>Subject: How to check if a DB is sorted
>From: German Carizza <[EMAIL PROTECTED]>
>
>I'm sorting a database on the app startup, but I don't want do that every
>time. I think that I can use the app's preference to know when the db is
>sorted, but I want to know if there is another way to do this.
>

.... use the sortinfo block, which the OS supports!  This allows you to
have file-specific sort information, which is much more extendable than
using preferences, and uses the OS to keep the sort status with the file.

Be aware, this block is not backed-up, which can be a useful thing
to take advantage of, though most people consider this an oversight
in the design of the backup conduit.

The other, better way, for a long process is to sort right after the file is 
HotSync'ed into the unit.  This way the operator isn't sitting looking at
your sort progress screen when he/she wants to use your application.  
Check the archives for tips on doing this, which involves both trapping 
and initiating launch codes.

Roger Stringer
Marietta Systems, Inc. (www.RF-TP.com)


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to