hi, sorry , in the first line it's actually " i'm NOT calling DmDeleteRecord() or any other API" -- actually i 'm manually deleting the record from the user-interface of the emulator and it's not reflecting when i 'm calling DmNumResources() or DmNumRecords()-- Thanx & Regds PInaki --- Pinaki Roy <[EMAIL PROTECTED]> wrote: > > HI Steve , > Thank you very much for your response -- > i'm calling DmDeleteRecord or my progarm not > deleting > any record , i 'm deleting the record manually from > the Address database in the emulator i 'm using -- > > In my application i have to display the records of > AddressDB -- in the address two records are there > by default(Accessories & TechnicalSup), i added some > 10 records -- and my application displaying all 12 > records (to get the records i'm using > AddrGetRecord() > function from AddressDB.c file --addressDB source > code)-- > Now i've deleted 2 Address records from the > emulator--and my application showing remaining 10 > records and garbage values for other 2 records > --while > debuging i found DmNumRecords returning 12 records > -- > why it's happening ?? in the Address application > delete operation is not handled properly or what?? > > and , in the doc of DmDeleteRecord it says that it > delets but leaves the record entry in the header > --is > it becoz of that i 'm getting 12 instead of 10?? > > Thanx in advance for any explanation .. > regards > PInaki > --- SLO Revo News <[EMAIL PROTECTED]> wrote: > >I'm > facing a problem while counting the record in > > >AddressDB -- > > >say there're 10 records-- i have deleted 1 record > > -- > > >now if i call > > >DmNumResources() or DmNumRecords()-- > > >it's showing 10 instead of 9. > > >why it's returning the wrong number?? > > > > If you're using DmDeleteRecord to delete the > record, > > it DmNumRecords > > will return 10. For an explanation, read the docs > > for DmDeleteRecord > > and DmNumRecords. > > > > If you're not using DmDeleteRecord, how are you > > deleting the record? > > > > Regards, > > Steve Mann > > > > -- > > For information on using the Palm Developer > Forums, > > or to unsubscribe, please see > http://www.palmos.com/dev/support/forums/ > > ________________________________________________________________________ > Yahoo! India Insurance Special: Be informed on the > best policies, services, tools and more. > Go to: > http://in.insurance.yahoo.com/licspecial/index.html > > -- > For information on using the Palm Developer Forums, > or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
________________________________________________________________________ Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more. Go to: http://in.insurance.yahoo.com/licspecial/index.html -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
