I'm usually using the same type and creator for all databases I need for an
application. If I know exactly which database to open, then I'm using
DmFindDatabase, assuming zero for card number.

If I have many databases, and I want the user to make the choice, then
I'm using SysCreateDatabaseList.

Regards

Bozidar

> -----Original Message-----
> From: Dave Lippincott [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 20, 1999 11:56 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: Multiple Database Problem
>
>
> 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