Dan Samber wrote:
> I'm a little confused (not the first time ;-) )
>
> I want to modify the contents of an existing record in my database.
> I *think* that I need to :
>
> 1) Get a handle to it
> 2) Use DmResizeRecord to resize it
> 3) Write to that new resized handle (as returned by DmResizeRecord)
>
> But in reading the docs.... I find that DmNewRecord might be enough?!?
> I quote :
>
> To add a new record to a database, call DmNewRecord. This routine
> can insert the new record at any index position, append it to the
> end, OR REPLACE AN EXISTING RECORD BY INDEX.
> It returns a handle to the new record.
>
Only indices are changed.It doesn't overwrite existing record.
Why don't you use DmAttachRecord or DmGetRecord .
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/