> >As far as I know, there's no easy way. You need to open the AppInfo
> >block and see what's used and what's unused. I believe the very last
> >byte in the AppInfoBlock contains the last unique category number
> >assigned.
Answered my own question & thought I would share my answer with everyone
here:
CategoryCreateList (db, listP, *currentCategoryP, title,
true, numUneditable, editStringID, true);
numOfCategories = (LstGetVisibleItems(listP)-1); // Subtract 1 for the Edit
item
CategoryFreeList (db, listP, title, editStringID);
Note that the above "numOfCategories" would also include the "All" category.
If anyone can come up with a better solution, I would like to hear it...
But, as it turned out, I needed to do the other things associated with the
category list, so this works alright for me.
Paul Taylor
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html