Hello...  I haven't gotten any messages from the mailing list in quite some
time, so I just resubscribed..  I hope someone's getting this...

 I want to generate a list of all categories...  Why does this not work?

 //  This function should put the current Category list in
 TextCatList[x].Name
 void GenerateCategoryList (void)
 {
      Word counter;
      Word index = 0;

          for (counter = 0; counter < 15; counter++)
          {
          index = CategoryGetNext (AddrDB, counter);
          // Above line gets the index of the next Category

          // Below line gets the name of the category and stores it in
          // TextCatList
          CategoryGetName (AddrDB, index, TextCatList[counter].Name);
          }
 }

 Am I doing something stupid here or what?  This should be an EASY routine..

 All I get in my list is "All" in every item..  If I reduce the number of
runs through the loop, I get a shorter list, but they are all still "All".
I've tried about everything I can think of to get this right, and just can't
seem to do it...

 Logic would seem to dictate that index is getting assigned the value of the
index to the category "All"...  I don't quite understand something that is
going on here...

Do I need to initialize counter to some value other than 0?

I just can't understand it because both of these functions operate normally
everywhere else in my program.  This isn't ran near the begining of the
program - Everything appears to be initialized already...I use these two
very same functions many other places....

Will someone please point out my glaring error?

Any help would be greatly appreciated..

 Oh, and can you reply directly to me as well as to the mailing list in the
event that I'm still not getting the mailing list?

Paul
[EMAIL PROTECTED]



Reply via email to