>The documentation for DmCreateDatabase() says that only one database with a
>specified name can exist (on a specific "card," but there's only one card).
>This means that even though applications must register their creator IDs to
>prevent conflicts, they can still conflict if they create databases with
the
>same name.  Is that correct?  Is there a standard naming convention to
avoid
>this?

Although I can't find it at the moment, I recall reading somewhere that the
recommended convention is to append your creator ID as part of the database
name. This would keep it unique for sure, but I have not seen many apps that
do this. I think that it's a good idea, especially in an app where the user
can specify the database name, which could conflict with one from another
app. In my own app, I append my creator ID to the name, but it is not
displayed to the user. For example, if the user creates a database named
"Smith", the actual Palm database that I create is named "Smith-GhGP". When
listing the available databases, I of course strip off the suffix so that
the user sees the name that was originally specified.

  Doug Gordon
  GHCS Software


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to