"Benjamin Brazil" <[EMAIL PROTECTED]> wrote in message news:76522@palm-dev-forum... > > Hello, > With regards to my previous question of how to create a list at runtime, by > retrieving the strings from a database, where each string is stored as a > single record, I am not clear as to what the drawback function to use would > be. The code examples that I have to create runtime lists all seem to > require the list to be in existence already, which has been hard coded as a > string list resource. The functions LstSetDrawFunction and LstSetListChoices > which I would like to use require the list data structure to have been > created already. Is it therefore possible to create a list data structure > dynamically by retrieving the strings from the database where each string is > stored as a single record. Once the list datastructure would have been > created it would then be straight forward to create the list.
I think what you are looking for can be found in the knowledgebase (I searched for "string list format") http://oasis.palm.com/dev/kb/faq/1217.cfm On eScribe (the archive for this mailing list) the two threads where these old messages of mine appear may be of interest as well: http://www.escribe.com/computing/pcpqa/m30926.html http://www.escribe.com/computing/pcpqa/m30928.html These msgs were rediscovered by searching for "string list format" at the archive search page: http://www.escribe.com/computing/pcpqa/search.html The knowledge base (http://oasis.palm.com/dev/kb/) and the palm-dev-forum archive are valuable resources for any question like this. btw: the tricky part about string lists is the extra "list prefix" string at the beginning of it. When you use SysStringByIndex() to get a string from the list, the result is the concatenation of the list prefix and the string you asked for. I don't really know why this is ... in many cases you are better off with an empty list prefix. -- -Richard M. Hartman [EMAIL PROTECTED] 186,000 mi/sec: not just a good idea, it's the LAW! -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
