Currently, my application always uses the default cardNo when creating 
a database (default meaning cardNo = 0).  However, I wanted to be able 
to handle having the data on another card.

The first place I wanted to check was the same card that the 
application resides on by using SysCurAppDatabase().  This works 
fine...but how can you find out the maximum number of cardNo's on a 
device?  I know that today, this is likely 2 (card 0 and 1)...but in 
the future, it could increase.  I want to be able to search for any 
current database on all cards, and then if it can't find it, create a 
new one on the application's current database.  This would be to handle 
legacy versions of my program that would have already created the 
database on card 0...but also be able to handle cases where, perhaps, 
the application was moved, but the databases that go along with it have 
not.  (Is that possible???)

Thanks.

Ryan



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to