Look, guys, I *know* why it doesn't work, but don't you think, logically, it
*should* work as expected??? It's supposed to delete all records in the
specified category, and "dmAllCategories" means all categories, so should it
not delete all records in all categories?

Sigh.

Based on David's answer, I suppose that means "don't use DmDeleteCategory(),
it's broken. Just do what it's supposed to do, only don't implement our bug"
;)

Follow-up question... David said that DmDeleteCategory() uses
DmRemoveRecord()... should it not use DmDeleteRecord() instead??? I would
think you'd call it DmRemoveCategory(). In any case, the docs are mute on
what the call actually does (Delete, Remove, Save a copy...) Maybe they
could be clarified for PalmOS 5.0?

Thanks,

- John


-----Original Message-----
From: David Fedor [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 11, 2000 2:27 PM
To: Palm Developer Forum
Subject: Re: DmDeleteCategory and dmAllCategories


>using DmDeleteCategory(db, dmAllCategories) returns 0 (success) and
>also does not delete any records.

Fascinating.  It is because no record is in the "all" category; there's no
such category as "all".  Perfectly logical answer :-)

I presume you realize you can just call DmRemoveRecord in a loop; that's
what DmDeleteDatabase currently does.

-David Fedor
Palm Developer Support


-----Original Message-----
From: Stephen Best [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 11, 2000 3:13 PM
To: Palm Developer Forum
Subject: Re: DmDeleteCategory and dmAllCategories


> Here's an interesting (unexpected) behavior....
>
> using DmDeleteCategory(db, dmAllCategories) returns 0 (success) and also
> does not delete any records. Tested with most PalmOS 3.x versions, but not
> against 3.5. Is this a bug or a feature? ;)

Try this: create some records with category 0x0f and see what happens ...

Stephen Best
Bitware Australia



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