Hi,
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++)
RemoveModule(i);
/////////////////////////////////
//In the NPET_database.c
void RemoveModule(UInt16 index)
{
Err err = OpenDB();
if (err)
return err;
return DmRemoveRecord(dbPtr,index);
}
/////////////////////////////////////
Thanks in advance.
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/