DmRemoveRecord will remove the record from the database and free the chunk
of memory it took up. DmNumRecords will not count the record because it
won't be there anymore.

If you use DmDeleteRecord only the 'delete' bit in the record gets set. It
then gets moved to the end of the database. It's still there so it gets
counted by DmNumRecords.

Mitch

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Sam
Trimble
Sent: Saturday, April 08, 2000 12:31 PM
To: Palm Developer Forum
Subject: DmNumRecords Error


Hey, I need to find out how many records there are in a database. Using the
DmNumRecords function works pretty good until I delete a record. Then the
next time it gets called it still returns the same numbers of records it did
before the delete. Is there any way I can get around this or any other way I
can get the number of database records?



--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to