"Brian Smith" <[EMAIL PROTECTED]> wrote in message
news:103983@palm-dev-forum...
>
> On Fri, 6 Dec 2002, Vlad Ardelean wrote:
>
> > As far as I know, there are four bits set aside for categories, which
> > give you not 15, but 16 categories (from category 0 to category 15).
> > Also, If you check Category Constatnts you will see that
> > dmRecNumCategories is 16.
>
> Usually, category 0 is set (and locked) to Unfiled, though.  It's the
> default unless you explicitly set the category of a record, so that kind
> of makes sense.
>
> So that leaves you 15 EDITABLE categories.  The question is, which number
> was the original poster interested in?

I believe the question had something to do with filling a list with
categories. Apparently, the categories that were on the machine filled in
OK, but the "empty" ones came up with garbage. I got the impression that the
programmer was not checking how many categories already existed on the
machine and ran off the end...
In other words, if there are 5 categories on the machine, numbers 6-15 came
up with garbage. I would think this would be expected, since those positions
would not have data. It is an initializion problem.
I think the solution to the "problem" would be: stop filling in your list
with categories after the last existing one, use a blank string instead. I
guess it depends on how / where the categories are stored, which I don't
know.

Searching on categories, I am now confused as well. Are the categories used
on the app or on the data?

It seems I can use: CATEGORIES ID 100 "Games" in my .rcp file, but it still
loads into "Unfiled". Can someone point to an example of using categories so
that my game automagically files itself under Games when I load it? BTW, it
has no database at this time, tho it will store a "top ten" later.



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

Reply via email to