Sorry, i made a small typing mistake here.
Here is the actual one.
I want my function to perform a deletion of all records at a time but
instead it only deletes half of the records.
Anybody has experienced this before?
//In the SetupMod.c
UInt16 i = 0;
.
.
.
case cmdModDel :
for(i = 0; i < CountRecord(); i++)
{
Err err = RemoveModule(i);
ErrAlert(err);
}
/////////////////////////////////
//In the NPET_database.c
Err RemoveModule(UInt16 index)
{
Err err = OpenDB();
if (err)
return err;
return DmRemoveRecord(dbPtr,index);
}
/////////////////////////////////////
Thanks in advance.
_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/