> Can anyone who has created a dynamic List please tell me
> what's wrong with the following code snippet:
> 
> char   items[10][5];

  ^^ this aint dynamic :P
  
> StrCopy(items[0], "AAC");
> StrCopy(items[1], "BBD");
> StrCopy(items[2], "CCA");
> StrCopy(items[3], "ADD");
> ...
> 
> LstSetListChoices (listP, items, 4);

  try this:

    LstSetListChoices(listP, (Char **)&(items[0][0]), 4);

  this might help :) otherwise dynamically allocate the list.

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 8 668 78 72

if you enjoy it, then it aint work :) - rule #106 of life


--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to