holy cow,
if you look up the docs, (if you have them, if not, get it!), you will
read the 2nd param RETURNS the index where the record is being written. you
can even catch it if it isn't on the same index,
-----Original Message-----
From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Date: Wednesday, July 19, 2000 9:04 AM
Subject: Re: records
>for example,if I insert a record in a database,
>
> UInt regIndex=2;
>regHandle=DmNewRecord(dbp,®Index,sizeof(Entrada));
>if (regHandle)
> {
> e.registro=registro;
> e.Hc=Hc;
> e.Tip=Tip;
> entrada=MemHandleLock(regHandle);
> DmWrite(entrada,0,&e,sizeof(e));
> }
>
>when I want to get the record at index 2 can I use this ?
>UInt regIndex=2;
>VoidHand reg=DmQueryRecord(dbp,regIndex); --> I get a fatal
>exception here
>Entrada *e=MemHandleLock(reg);
>
>--
>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/