maria try this
char K1 [] = "L";
char K2 [] = "S";
char K3 [] = "C";
char* K_List [3] = {K1, K2, K3};
LstSetListChoices ((ListType*) FrmGetObjectPtr(frmP, FrmGetObjectIndex(frmP,
ChartsSubList)), (char**) K_List, 3);
With Regards
Manish Jaggi
>From: "maria j�nsson" <[EMAIL PROTECTED]>
>Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>Subject: Load strings in a list
>Date: Fri, 05 Oct 2001 08:35:07 +0000
>
>Hello
>
>I wonder if someone knows how to load a list with an array of strings. I
>have used a Char ** and the function LstSetListChoices. But I get this
>error
>message: "My program" just wrote to memory location 0X00000, which is in
>low
>memory. It should not be directly accessed by applications under any
>circumstances.
>
>Do any of you have a god example of how to load a list??
>
>Here you have my function:
>
>// Update listPopupTool's choices:
> Char**ListText=NULL;
>
> ListText[0]="Anki";
> ListText[1]="Maria";
>
> FormPtr form = FrmGetActiveForm();
> UInt16 index = FrmGetObjectIndex(form, lstREPORTS);
> ListType *list = (ListType *) FrmGetObjectPtr(form, index);
> LstSetListChoices(list, (Char **)ListText, 1);
>
>Thankful for help //Maria
>
>_________________________________________________________________
>H�mta MSN Explorer kostnadsfritt p� http://explorer.msn.se
>
>
>--
>For information on using the Palm Developer Forums, or to unsubscribe,
>please see http://www.palmos.com/dev/tech/support/forums/
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/