> -----Original Message-----
> From: Neil Rhodes [mailto:[EMAIL PROTECTED]]
> 
> >      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"};
> 

Bear in mind, though, the restrictions on the use of
globals (and statics are, in effect, globals) as far
any non-normal program launch (hacks, find, etc).

-- 
Richard M. Hartman
[EMAIL PROTECTED]
 

Reply via email to