> > >Is record indexes constant all along the execution, or are they updated when > >i detach/remove/delete one of them ? > > They dynamically renumber when any records are either inserted or removed. Thus > the valid index numbers will always be from 0 through the last available number. > One simple solution in your scenario is to have the loop proceed backwards, > removing records from the end towards the beginning. > > But why not just delete the database and create a new empty one next execution?
I have an error : MemoryMgr.c Free Handle. (somthing may be wrong on my code :) How can i detach a given handle if the index is not constant, because DmDetachRecord need an index param. How can i found the index of a given record ? thanks Chris -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
