I have the following code setting and unsetting the backup bit of a
database:
Err err;
UInt iAttrib;
err = DmDatabaseInfo( 0, idDatabase, NULL, &iAttrib, NULL, NULL, NULL,
NULL,
NULL, NULL, NULL, NULL, NULL );
if( err )
{
ErrDisplay( "DmDatabaseInfo FAIL" );
return;
}
if( bState )
iAttrib |= dmHdrAttrBackup;
else
iAttrib &= dmHdrAttrBackup;
err = DmSetDatabaseInfo( 0, idDatabase, NULL, &iAttrib, NULL, NULL, NULL,
NULL,
NULL, NULL, NULL, NULL, NULL );
if( err )
{
ErrDisplay( "DmSetDatabaseInfo FAIL" );
return;
}
Turning the backup bit on works fine but turning that backup bit off doesn't
seem to work. I imagine that I'm just being dumb but it's not coming to me.
Thanks,
Mark
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/