Thanx, this does help, however, I was hoping for some sample code
which showed how to load a string list (tSTL) and use it.
> > I'm trying to use the above to change the items in a list. However, I
> > can't figure out how to define the char ** itemsText. I'd like to use
> > a resource tSTL list, but can't figure it out.
> >
> > I can't use an array of char [][] either, apparently. The docs are
> > useless, and so are the sample programs.
>
> nothing is useless.. you just need to write your code cleanly
> and confirm to the specification in the documentation :)
>
> > I guess they never thought anyone would want to do this, but I do.
>
> here you go, some sample code!
>
>---
> CharPtr *listString;
> Byte i;
>
> // initialize
>
> listString = (CharPtr *)MemPtrNew(size * sizeof(CharPtr));
> for (i=0; i<size; i++) {
> listString[i] = (CharPtr)MemPtrNew(length * sizeof(Char));
>
> // do your thing to the list? (copy values or whatever)
> }
>
> // do it
> LstSetListChoices(list, listString, size);
>
> // free
> for (i=0; i<size; i++) {
> MemPtrFree(listString[i]);
> }
> MemPtrFree(listString);
>---
>
> enjoy! :)
>
>az.
>--
>Aaron Ardiri
>Java Certified Programmer http://www.hig.se/~ardiri/
>University-College i G�vle mailto:[EMAIL PROTECTED]
>SE 801 76 G�vle SWEDEN
>Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
>Mob: +46 70 656 1143 A/H: +46 26 10 16 11
____________________________________________________
John Spicer
H: (780) 903-6224
____________________________________________________
<mailto:[EMAIL PROTECTED]>
____________________________________________________
Author: MakeItGrow, MacLotto, TiCalendar, MacBillman,
Image-In Engine, TiCalendar, DrugMaster, MacDirectPay
If you want to work on your computer, buy an IBM.
If you want to DO work on your computer, buy a Mac.
____________________________________________________