Re: Does LstSetListChoices() copy or use the itemsText parameter pass ed?

2008-05-28 Thread chongwm
Nope, the document states that, though not in the exact words IT DOES NOT MAKE A COPY. -LstSetListChoices (ListType *listP, Char **itemsText, UInt16 numItems) -Parameters : itemsText Pointer to an array of text strings. So, u would have to do something like this: void foo() { Char* *strArray;

RE: Does LstSetListChoices() copy or use the itemsText parameter pass ed?

2008-05-28 Thread Gavin Maxwell
Basically if the API name has Set in the title it merely stores a reference to whatever you pass in, if it has Copy in the name it will actually copy what you pass it. eg FrmCopyTitle copies the string you pass it. Regards, Gavin. -- For information on using the ACCESS Developer Forums, or

Does LstSetListChoices() copy or use the itemsText parameter pass ed?

2000-10-29 Thread Jason Garrett
Does LstSetListChoices() make its own copy for the list to use, or does it continue to use the memory that you have indicated in this call? Could I destroy my string list, and the list remain happy? Jason Garrett wirelessdata Ph: +64 9 379 3710 Fax: +64 9 379 7360 Cell: +64 21 400 307 ICQ:

Re: Does LstSetListChoices() copy or use the itemsText parameter pass ed?

2000-10-29 Thread chongwm
Nope, the document states that, though not in the exact words "IT DOES NOT MAKE A COPY". -LstSetListChoices (ListType *listP, Char **itemsText, UInt16 numItems) -Parameters : itemsText Pointer to an array of text strings. So, u would have to do something like this: void foo() { Char*

RE: Does LstSetListChoices() copy or use the itemsText parameter pass ed?

2000-10-29 Thread Gavin Maxwell
Basically if the API name has "Set" in the title it merely stores a reference to whatever you pass in, if it has "Copy" in the name it will actually copy what you pass it. eg FrmCopyTitle copies the string you pass it. Regards, Gavin. -- For information on using the Palm Developer Forums, or