It's probably just me having a bad day but I can't get my app to set the
backup attribute after creating a database.

UInt16 attribute;
LocalID myID;

DmCreateDatabase(0, DBName, CreatorID, 'data', false);
myID=DmFindDatabase(0, DBName);
attribute=dmHdrAttrBackup;
DmSetDatabaseInfo(0, myID, DBName, &attribute, NULL, NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL);

Anyone see what's wrong with my code?

Regards,
Kristian



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to