Simon is right. The card will almost always be 0. However, if for some reason you do want to support the old handspring devices/springboard modules, you have to use DmGetNextDatabaseByTypeCreator to find your database.
-Jon -------------------------------------------- Jonathan Hays Palm OS Certified Developer http://hazelware.luggle.com -------------------------------------------- -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Simon Dick Sent: Wednesday, April 21, 2004 7:18 AM To: Palm Developer Forum Subject: Re: [newbie question] opening databases....chicken and egg? On Wed, 2004-04-21 at 15:08, Salli wrote: > Hi, > I have several databases which I wish to open at the start of my > application. I don't want to limit my application to looking on card 0 as I > would like the databases to be able to be transferred to any card (they are > read only). > > The problem I have is that if I want to open the db by name then I have to > supply the cardno. If I want to allow any card then I can open the dbs by > type and creator id, but it just keeps coming back with the first database > everytime I do the open command...how do I tell it to open the db by name > but not cardno? > > I'm sure there is a really simple way of doing this and I'm just missing > something fundamental! The card number is the RAM card number, almost always 0 except in some handspring devices with extra flash, etc. You have to use VFS calls to read databases from the SD, MS, etc cards. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
