At 12:43 PM +0100 11-01-00, Gaurav Palvia wrote:
>is there any function which takes a record as input and check whether it is
>in a given category or not.
What do we look like, a manual?
...ok, because I knew this was easy but didn't know exactly how to do it I
checked...
Call DmRecordInfo, mask the attribute with dmRecAttrCategoryMask, and
compare the result to the category number you're looking for.
e.g.
UInt16 attr;
DmGetRecordInfo(dbRef, index, &attr, NULL, NULL);
if ((attr & dmRecAttrCategoryMask) == searchCategory)
// match!
else
// in some other category
--Bob