I'm having a problem setting the category field on a contact in the address
book database.
Here's basically what I'm doing:
Char *cat = "Some Category";
found = 0;   // default category is 0
for each element in AddrAppInfoPtr appInfoPtr->categoryLabels,
    compare with cat.
    If match: found = 0; break;
DmRecordInfo(..., &attr,...);
attr = (attr & (~dmRecAttrCategoryMask)) | found;
DmSetRecordInfo(..., &attr,...);

However, all the records are still marked as unfiled (although the last byte
of was set to the [!=0] category number).

I even tried explicitly setting the last byte in attr to a non 0 value, but
all categories are still Unfiled (according to the address book).

What am I missing?

- Eythor





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

Reply via email to