Try iterating in an opposite direction.
I assume, you see why it makes difference.

M.

-----Original Message-----
From: reshma [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 13 December 2001 4:54 PM
To: Palm Developer Forum
Subject: Deleting causes error


hi,
i have to delete a record from a database.i am using DmRemoveRecord for
that.but when i iterate the database for another record from the begining
using
for(i=0;i<DmNumRecords(db1);i++)
rech=DmQueryRecord(db1,&i);

its giving error when it reaches the record i deleted early.
i read from some docs that records Removed are kept at the end of
database.so why its trying to read the same at its original position


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