Hi,
I found some likely code.
When I try and run it, it works fine but when I try to view the records, it
skips over it.
The index of the records around it indicate that it is still there. Is it
"dirty"? How can I read it? Am I doing something wrong?? I have included
what I am doing to see if it is something obvious.
VoidPtr recH;
BothRecordsPtr recP;
UInt16 index = 0;
index = UpdateStatusIndex;
recH = DmGetRecord(DriversLogDB, index);
recP = MemHandleLock(recH);
DmSet(recP, (ULong)recP->DriverLogRec.PeriodTimestamp.hour, sizeof(ULong),
clickHour);
DmSet(recP, (ULong)recP->DriverLogRec.PeriodTimestamp.minute,
sizeof(ULong), clickMin);
MemHandleUnlock(recH);
DmReleaseRecord (DriversLogDB, index, true);
-----Original Message-----
From: Steve Mann [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 29, 2000 2:24 PM
To: Palm Developer Forum
Subject: Re: DmGetRecord
>Can I now update this record??
Yes, but you have to lock the record to get a pointer to it, then
modify the data using the pointer and DmMemSet or DmMemMove,then
unlock and release the record. you can find a lot of examples of this
in the sample applications that come with the SDK.
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/