You have to create the record then get it's attributes using DmRecordInfo.
Once you have the attribute, you can "or" in your category into the
attribute and then use DmSetRecordInfo to change the category of that
record.  See the MemoPad example for the actual code to do this.

Kevin

> -----Original Message-----
> From: Michael Morton [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 25, 2001 7:48 AM
> To: Palm Developer Forum
> Subject: RE: Adding Record In Category
> 
> 
> maybe i should refine my question,
> there can be multiple categories in a database  (multiple tables)
> hence DmQueryNextInCategory
> 
> in a conduit i use this to write in a certain category (table)
> 
> Sub Write(pvUniqueId, nCategory As Long, eAttributes As 
> ERecordAttributes,
> vData)
>     Member of PDStandardLib.PDRecordAdapter
>     method Write
> 
> my question is: 
>   how can i get this functionality on the Palm ? 
>   is there an equivalent in the Data Manager set of functions?
>   
> 
> > -----Original Message-----
> > From:       Steve Mann [SMTP:[EMAIL PROTECTED]]
> > Sent:       Thursday, January 25, 2001 10:45 AM
> > To: Palm Developer Forum
> > Subject:    Re: Adding Record In Category
> > 
> > >DmNewRecord  requires a record number to be able to add a 
> record at a
> > given
> > >position. but say i dont have any records in a certain table...
> > >how do i find the index of the table so i can add a record to it?
> > 
> > The indices are a contiguous, sequential set of numbers starting at 
> > zero. If you don't have any records, if you add one, it will be put 
> > at index zero, regardless of the index you tell the data 
> manager you 
> > want to put it at. You can request an index, but that doesn't mean 
> > you'll get the one you request.
> > 
> > Regards,
> > Steve Mann
> > -- 
> > -------------------------------------------
> > Creative Digital Publishing Inc.
> > 1315 Palm Street, San Luis Obispo, CA 93401-3117
> > -------------------------------------------
> > 805.784.9461              805.784.9462 (fax)
> > [EMAIL PROTECTED]       http://www.cdpubs.com
> > 
> > -- 
> > For information on using the Palm Developer Forums, or to 
> unsubscribe,
> > please see http://www.palmos.com/dev/tech/support/forums/
> 
> -- 
> For information on using the Palm Developer Forums, or to 
> unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
> 

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