On Mon, 07 Aug 2006 08:11, Durgesh Trivedi wrote: > when i try to count the records frm todo database using the function > DmNumRecords it give the count for those records also which are deleted frm > the data base. > > for example > we have 5 records in the data base its show still 5 after we delete the 2 > records > But it should show 3 records. > > and if we add more record it will count frm 5.and show the results > according to that. > > please help me Have you read PalmOS API Reference ?
DmNumRecords has comments: Records that have that have the deleted bit set (that is, records that will be deleted during the next synchronization because the user has marked them deleted) are included in the count. If you want to exclude these records from your count, use DmNumRecordsInCategory() and pass dmAllCategories as the category. -- Best regards, Sergey -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
