Thanx a lot Bob
-----Original Message-----
From: Bob Ebert <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, January 11, 2000 10:03 PM
Subject: Re: is there any function search a particular record in a
givencategory


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

Reply via email to