> > I am working on an application which wants to store data in the user's
> > To-Do list, in a predetermined category. I can't find example code for
> > how to programmatically create a Category which does not exist (if
> > there's an open slot, otherwise use Unfiled), and to apply that new
> > Category to the new items.
> >
> Check the memopad tutorial. If you have a category associated with the
> database in your program, add the interfaces and the code as in the Memopad
> program (assign the category for each records, etc...) then the part
> "programmatically create a Category which does not exist" will be done by the
> system. You don't need to write code to do it. Try the tutorial and you know
> what I mean. Well, the tuorial goes with CW 8, you can download the trial
> version from MW website. http://www.metrowerks.com/MW/download/default.asp
I am using PRC-Tools and just D/L'd the CW demo but did not find any "memopad
tutorial". I'm guessing that the tutorial you are referring to uses the
CategorySelect API. I want to use MY OWN interface for creating categories, but the
only API(s) I can find are for renaming/deleting an existing category
[CategorySetName()].
I want my code to follow this pseuedocode:
if (Exists(MyCategory))
{
useCat = MyCategory;
}
else
{
if (CategorySlotAvail)
{
CreateCategory(MyCategory);
useCat = MyCategory;
}
else
{
useCat = Unfiled;
}
}
I've seen this functionality used when exporting stuff to Memopad from Plucker and (I
think) Avantgo. Does anyone have the Plucker source?
JiMZ
--
__________________________________________________________
Sign-up for your own personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/