Do you have less than 2 records in your database when running this code?
index = 2 may not be a valid index since it will be reassigned if you have
less than 2 recs.
-Ken
> ----------
> From:
> [EMAIL PROTECTED][SMTP:[EMAIL PROTECTED]]
> Reply To: Palm Developer Forum
> Sent: Wednesday, July 19, 2000 9:03 AM
> To: Palm Developer Forum
> 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/