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;
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() 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:
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*
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