>Can some helpful person tell me how I check the category of a record, given
>a pointer to it's handle?

You don't need the pointer or the handle (in fact, AFAIK, you can't 
get the category with either of those things).

Regards,
Steve Mann

/***********************************************************************
  * FUNCTION:           UTGetRecordCategory
  *
  * DESCRIPTION:        Set the category for a database record.
  *
  * RETURNED:           the category
  ***********************************************************************/
UInt8   UTGetRecordCategory             // ( out ) the category
(
        DmOpenRef       dbRef,          // ( in ) the database reference ID
        UInt16          index           // ( in ) index of the record to change
)
{
        Err             error;
        UInt16          category;

        error = DmRecordInfo ( dbRef, index, &category, NULL, NULL );
        ErrFatalDisplayIf ( error, "Error getting the record info" );
        category &= dmRecAttrCategoryMask;
        return ( UInt8 ) category;
}



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

Reply via email to