DmNumRecordsInCategory() is what you want.  It checks attributes and doesn't
count deleted or (if mode is to not show private) private records.  Use
DmAllCategories with it.  Be warned: it isn't very quick.

-bob mckenzie

-----Original Message-----
From: Todd Cary [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 7:51 AM
To: Palm Developer Forum
Subject: Re: Deleting vs removing records - more


I understand about DmDeleteRecord() not removing a record.  After some
testing, I know know the problem, but I do not know the solution.  Here
is the problem:

Since DmDeleteRecord() does not remove the record,
DmNumRecords(Database) returns an incorrect value if a record is
"Deleted", so that my code for "painting" the tables, etc. does not work
(I use DmNumRecords() ).

What change should I make to the code?

Todd

--
Todd Cary
Ariste Software
[EMAIL PROTECTED]



-- 
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/tech/support/forums/

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