Scott L. Johnson wrote in message <7020@palm-dev-forum>...
>
>> From: Al Macy [mailto:[EMAIL PROTECTED]]
>> LstSetListChoices takes a pointer to an array of text
>> strings. Are those strings copied into storage for that list,
>> or do they need to remain around
>
>The strings are not copied, only the pointers to them. Your code needs to
>keep them valid for the lifetime of the list.
>
>Or consider using a draw callback, which lets you omit supplying strings at
>all. Depending on your app, this may be easier.
>
As far as I can tell, implementing the list draw callback is
-always- as easy, if not easier, than the other way. It is
also more flexible. You might just want to get into the habit
of always using the drawing callback method with lists
and that way you never have to think "which way should
I do it with -this- list?"
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi/sec: not just a good idea, it's the LAW!
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html