Henk Jonas wrote:
druid wrote:
Simply put, I can't follow his code or where he was going with that
so I guess I will try another method.
Then ask about :-)
Ok, being a bit more specific...
You need:
* The number of strings in your list, this is your record count.
* The strings in a string array. A string array is a memory block from
type (Char **). Every element is a point to a string. A string is just a
memory block of type (Char *).
Therefore:
You need to allocate your string array. This is
array = MemPtrNew(recordcount * sizeof(Char *));
Next you will have to allocate the string for every element of your
string array. This is
array[i] = MemPtrNew(StrLen(ptr) + 1);
Now you fill the string
StrCopy(array[i], ptr);
Then you are ready and use it with LstSetListChoices()
When you ready with your list, you will have to free all memory you have
allocated:
1. free the elements
2. free the array
Regards
Henk
--
-------------------------------------------------------------------------
Henk Jonas [EMAIL PROTECTED]
Palm OS ® certified developer
Please contact me, if you need an off-site contract worker.
-------------------------------------------------------------------------
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/