You can't pass other combinations, like 5 for categories 1 and 3, so it
seems reasonable that you can't pass 0xFF for all. What does seem to be
a bug is that it doesn't return failure.
Regards,
-jjf
-----Original Message-----
From: Schettino, John [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 11, 2000 3:53 PM
To: Palm Developer Forum
Subject: RE: DmDeleteCategory and dmAllCategories
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
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html