llList2CSV
Revision as of 21:15, 7 July 2008 by Chaz Longstaff (talk | contribs)
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: string llList2CSV( list src );195 | Function ID |
0.0 | Forced Delay |
10.0 | Energy |
Returns a string that is comma separated values from src list. The source list may have separators other than commas before you start; the result will still be the same, a string with commas.
• list | src |
This is functionally equivalent to llDumpList2String(src, ", ");
Do not confuse this function with the CSV format, it is not the CSV format.
Caveats
Examples
The comma separator is actually comma space.
list tmp01 = ["a",b,c,d,e]>;
string tmp02 = llList2CSV(tmp01);
//tmp02 will equal: "a, b, c, d, e"
default{ state_entry(){ list my_list = [1, 2.0, "a string", llGetPos(), llGetRot(), llGetOwner()]; llOwnerSay(llList2CSV(my_list)); } }
See Also
Functions
• | llCSV2List | |||
• | llDumpList2String | |||
• | llParseString2List | |||
• | llParseStringKeepNulls |
Articles
• | Typecast |