Is it safe to store the local id of a database and access it later? Does it ever change?
I suppose it depends on "how much later"? I have a largish application which caches local IDs for a short time before using them and have never had any problem. Practically speaking, I believe they're not very volatile at all; I suspect that the operating system even guarantees that their validity will persist at least throughout the execution of an application. How much longer than that, I don't know; certainly if you re-created or re-installed the database, the local ID would no longer be any good.
To increase confidence a bit, you could always call DmDatabaseInfo (either before or after opening the database) to see if the local ID you have in hand identifies a database with the right name.
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
