Hello everyone,
This is a simple problem. I have a checkbox that when ticked causes the 
backup bit for a database to be set and when unticked causes the backup bit 
to be unset. The problem is that I don't know the syntax for unsetting the 
backup bit:

error = DmDatabaseInfo(0, dbID, NULL, &dbAttrs, NULL, NULL, NULL, NULL, 
NULL, NULL, NULL, NULL, NULL);
if (backUp==true) dbAttrs |= dmHdrAttrBackup;
else /* unset backup bit here*/
ErrFatalDisplayIf(error, "Could not get database info.");
error = DmSetDatabaseInfo(0, dbID, NULL, &dbAttrs, NULL, NULL, NULL, NULL, 
NULL, NULL, NULL, NULL, NULL);

I know this is a very basic question but could anyone tell me how to unset 
the bit.
Regards,
Ger


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


-- 
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