From the docs:
DmOpenDatabaseByTypeCreator
Purpose: Open the most recent revision of a database with the given type and creator

So, if you have several databases with the same (creatorID,type), DmOpenDatabaseByTypeCreator won't allow you access to the older ones. You'll need to find them through some other means, like DmNumDatabases, DmGetDatabase and DmDatabaseInfo.

Cheers,

Jeffrey Pahren wrote:

Hi gang, long-time listener, first-time caller.

Way back in September, Paul Wijntjes wrote:

> ...
>
> I try to connect to several databases which were created by another
> application. All these databases however have the same type("DATA") and
> creatorID ("SMSF"), but have a unique name. ...
> When trying to open a database using KVM [a tool Paul is using] always
> the same database is opened: the first one that was created using the
> given type and creatorID. Successive calls to the openDB call just open
> the same database several times.
>
> I cannot change the type or creatorID of the databases.
>
> How can I access every one of those database??

I saw no replies that adequately answered this.

I have run across the exact same problem.  I was looking at some doc files,
and it seems they do the same thing--their creator ID and Type are always
the same ('REAd' and 'TEXt').  If I have two doc files and put them on a
Palm, calls to DmGetNextDatabaseByTypeCreator() only finds one database.

In the "Info" screen on the Palm, I see one database, but the record count
matches the total of the two doc files loaded.

So are the two pdb files with the same creator/type somehow getting
concatenated on the Palm?  What is the party line for how databases
with the same creator id/type, but different names are handled?

thanks in advance

-Jeff Pahren

--
Sergio Carvalho
---------------
[EMAIL PROTECTED]
[EMAIL PROTECTED]

If at first you don't succeed, skydiving is not for you
 

Reply via email to