LstSetListChoices expects a list of character pointers (a list of
addresses).  You are creating an array of actual strings.  Using:

static char *items[] = { "AAC", "BBD", "CCA", "ADD" };
LstSetListChoices (listP, items, 4);

Should work.

Good Luck,
-jjf


-----Original Message-----
From: Stephen Bentley [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 27, 2000 12:47 PM
To: Palm Developer Forum
Subject: LstSetListChoices trouble


Can anyone who has created a dynamic List please tell me
what's wrong with the following code snippet:

char   items[10][5];
 
StrCopy(items[0], "AAC");
StrCopy(items[1], "BBD");
StrCopy(items[2], "CCA");
StrCopy(items[3], "ADD");
...

LstSetListChoices (listP, items, 4);

I get this compile time error:

Error   : cannot convert
'char (*)[5]' to
'char **'
test.c line 4599      LstSetListChoices (listP, items, 4);

I've also tried &items in the function call but it doesn't
work either. What am I doing wrong?

Steve



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

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

Reply via email to