Hi Manish!

Thank you for our help!
I tried this but now I get this error message:

"My Program" just read from memory location 0x000006ce which is in the 
PalmOs global variables.

PalmOs global variables are memorylocations reserved for the private use of 
the PalmOs. They should not be accssesed by applications under any  
circumstances.

One more thing, is the ChartsSubList the same as
index=FrmGetObjectIndex(form_ptr,listId)??

// Maria

>From: "manish jaggi" <[EMAIL PROTECTED]>
>Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>Subject: Re: Load strings in a list
>Date: Fri, 05 Oct 2001 09:37:45 +0000
>
>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/


_________________________________________________________________
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/

Reply via email to