Elia,

You can use the same API routines to open multiple data bases within your
program.  If your databases have the same creator ID and Type, use
DmGetNextDatabaseByTypeCreator.  Make the first call with newSerach parm as
true and subsequent calls with it as false.   You may want to give them
different Types so you can open them directly.  Note: the card number will
always be zero (for now).
Multiple DBs are easy if you know the creatorID and type and/or the DB name
(which must be unique for all DB's on the device)  My current app uses two
different Types and the same creatorID to manage numerous databases at the
same time.  If you need some examples, you can email me directly

Hope it helps
Dave

-----Original Message-----
From: Elia J. Freedman <[EMAIL PROTECTED]>
To: FORUM <[EMAIL PROTECTED]>
Date: Thursday, May 20, 1999 4:49 PM
Subject: Multiple Database Problem


>Hey all,
>
>I have a problem that I don't know how to solve.  I want to use two
>databases in the application I am working on and can't figure out how to
>deal with them correctly.  I know the name of each database, the creator ID
>of the application, and the type.  Obviously, I can't use
>DmOpenDatabaseByTypeCreator since I have two databases.  I thought about
>DmFindDatabase but I don't know which card it is in (I would rather not
>assume 1 card).  Finally, I thought about DmGetNextDatabaseByTypeCreator
but
>how do I figure out which database is which?
>
>I assume some others have done this already.  Any suggestions?
>
>Thanks,
>Elia
>
>
>


Reply via email to