Hi all,
I designed forms and routines to look and act like the CategoryEdit dialogs
that come up when a user selects to edit a list of categories to be
implemented in 5 separate popup lists in my app where a user can edit the
text within these lists.
The char arrays to hold these lists are stored in the app preferences and
are declared as follows:
{
.
.
char *List1[17];
char *LIst2[17];
char *List3[17];
char *List4[17];
char *List5[17];
} MyAppPreferenceType;
These are to hold 16 editable string by the user and the last one is to hold
the "Edit LIst..." string.
In the EventHandler, when a user selects the "Edit LIst..." item within a
particular popup list I have a global char array assigned to the list to be
edited which is declared like this.
char* *ListAgent; // Global to be passed to
and assigned to the appropriate list like this.
ListAgent = prefs.List1;
This all seems to work fine while in the application, I can add items to a
list and view them when selecting the popup trigger, however... when I exit
the app and return to view the list, the slots which had strings added to
them are empty.
Does anyone know what I am doing wrong or how I can make sure the lists are
saved correctly in the preferences when the app closes?
Thanks so much for the help and my apologies if this is really a C question
rather than a Palm question which I suspect it is.
Regards,
Jim
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/