Hi.

You can reverse the for loop and remove from the last one (DmNumRecords-1) to
0.

Max
--- Low Pui Kuen <[EMAIL PROTECTED]> wrote:
> 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/


=====
http://www.weirdwww.com/

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

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