> I'm trying to use a single drop-down list to handle a few different
> cases, and I'd like to use the function LstSetListChoices to modify the
> options contained in the list at any point. But neither
>
> CharPtr ChoiceArray[4] = {"abc", "def", "ghi", "jkl"};
> LstSetListChoices( listP, ChoiceArray, 4 );
The problem is most likely that ChoiceArray is a variable on the stack, thus
the four pointer-array is garbage once your routine works. Make it a global
(define it outside of any function), or make the array static:
static CharPtr ChoiceArray[4] = {"abc", "def", "ghi", "jkl"};
>
> nor
>
> LstSetListChoices( listP, {"abc", "def", "ghi", "jkl"}, 4 );
>
> are working. The examples I've found thus far either involve using string
> resources or custom list draw routines, and it seems there should be a
> simpler, more direct method like I've tried above. Could someone tell me
> why the above attempts don't work and if there is a simple modification
> that would make it work?
>
> Michael
>
>
--
Neil Rhodes
Calliope Enterprises, Inc.
1328 Clock Avenue
Redlands, CA 92374
(909) 793-5995 [EMAIL PROTECTED] fax: (909) 793-2545