Open file 'A', get a file reference handle (DmOpenRef) for 'A'
Open file 'B', get a file reference handle for 'B'
don't use the same handle for both files
Use handle 'A' for working with DB 'A'
Use handle 'B' for working with DB 'B'
Its the same as working with files on most other OSs (except you use
different APIs)

read up on the Data and resource manager in the Palm OS documentation, look
over some of the examples included in the SDK


----- Original Message -----
From: "Marvin" <[EMAIL PROTECTED]>
Newsgroups: palm-dev-forum
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Friday, May 25, 2001 12:16 PM
Subject: How to open two different PDB in one app??


> My one app has two different PDB files. Both have same creatorID, but each
> has different PDB name and different database structure.
>
> My problem is this:
> I have two press buttons. Button A will need to open DBa while Button B
will
> need to open DBb.
> Assuming the DB name for DBa is dbaseA and DB name for DBb is DbaseB.
> How do I identify which is which???
>
> Thanx in advance
> Marvin
>
>
>
> --
> 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/

Reply via email to