This works OK:

error = DmGetNextDatabaseByTypeCreator(TRUE, &stateInfo, MyDataBaseType,
MyCreatorID, FALSE, &cardNo, &dbID);
if (!error)
{
        // database exists - get number of records
        error = DmDatabaseSize(cardNo, dbID, &numRecords, NULL, NULL);
}

Regards, Nick

-----Original Message-----
From: Dan Hod [mailto:[EMAIL PROTECTED]]
Sent: Monday, 4 October 1999 8:26
To: [EMAIL PROTECTED]
Subject: How can I know if a database was deleted from the Palm device?


I have the cardNo and dbID of a database and I want to check if it is still
on the Palm device.
I tried to do it with the following routines:

    DmDataBaseInfo          -    CRASHES
    MemLocalIDToGlobal  -    returns a non NULL handle

Any ideas ?


Regards,

Dan Hod
R&D Manager
The PalmMate Team

Gotta Palm? Gotta visit www.PalmMate.com

Reply via email to