"Bozidar Benc" <[EMAIL PROTECTED]> wrote in message news:26761@palm-dev-forum...
> It's easy to check if a database is already opened.
> First, you must find a database and get its LocalID.
> Then use DmDatabaseInfo() call to get database's attributes.
> If attributes & dmHdrAttrOpen then your database is already opened.

True, but how does this help? If you receive a beam, you need to open the
database in read-write mode to create the new record. If it's already open
in this mode by someone else, you can't open it. So what are you going to do
with the received data? I suppose you could store it away somewhere and move
it later, when you get the goto event. But if you're going to do that, you
might as well do it even when the database isn't already open. I don't
recommend this approach because it relies on the goto event. If you receive
several objects at once for various apps, you might not be the lucky app to
get the goto event. (This can't happen today, but we're working on making
this possible in the future.) If you can avoid keeping the other app's
database open in read-write mode, that's what I'd recommend.
--
Danny Epstein
OS Engineer, Palm Inc.


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