"Hector Malpartida" <[EMAIL PROTECTED]> wrote in message
news:54866@palm-dev-forum...
> I neet to know if the index of a database is the same number as long as
the
> Database is opened.
I think DmGetDatabase will return the same databases in the same order as
long as no databases are created or deleted. It's the usual issue: don't
modify a collection while you're iterating over it. I don't think opening a
database has any effect on the list of databases.
Other apps may create and delete databases during a sub-launch. This could
happen when you call SysHandleEvent in your event loop. So you should do
your entire iteration before going around your event loop.
If you need your list of databases to persist for longer than the Data
Manager's list does, you could always create your own cache of the list (or
the part of it that you need) and keep it around for as long as you need it.
--
Danny @ Palm
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/