The "Palm OS Programmer's API Reference" defines DmOpenDatabase on page 594 (in Part II "System Management", Section 28 "Data and Resource Manager", subsection "Data Manager Functions"). This takes the LocalID and Card Number and returns a DmOpenRef. It also allows you to open the database with various modes (read only, exclusive, show secret, etc.). Read the docs! (or, alternatively, look at the header file that defined DmFindDatabase).
-bob mckenzie -----Original Message----- From: Todd Cary [mailto:[EMAIL PROTECTED]] Sent: Monday, October 01, 2001 6:28 AM To: Palm Developer Forum Subject: LocalID vs DmOpenRef Obtaining LocalID's for multiple databases is straight forward with DmFindDatabase(); however, most Dm functions require the DmOpenRef. Is there a function to get the DmOpenRef from the LocalID? If not, does one have to use DmGetNextDatabaseByTypeCreator() *and* DmDatabaseInfo() to get the DmOpenRef based on a DBType, DBCreator, and DBName? Todd -- Todd Cary Ariste Software [EMAIL PROTECTED] -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
