You need to set dmHdrAttrBackup on your database.
This will ensure that it's backed up.
DmOpenDatabaseInfo(gUrlDB, &theLocalID, NULL, NULL, &theCardNum, NULL);
DmDatabaseInfo(theCardNum, theLocalID, NULL, &theAttributes, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
theAttributes |= dmHdrAttrBackup;
DmSetDatabaseInfo(theCardNum, theLocalID, NULL, &theAttributes, NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ralph
Krausse
Sent: Tuesday, January 23, 2001 10:44 AM
To: Palm Developer Forum
Subject: How can I back up a database
To my surprise, there is no API to copy a database.... or is there and I can
figure it out. Basically, I want to make a back up of my database on the
palm.
Thanks
Ralph Krausse
www.consiliumsoft.com
** Free Palm Source Code **
--
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/