llList2CSV

From Second Life Wiki
Revision as of 12:34, 30 October 2009 by Omei Turnbull (talk | contribs) (Expanded on relationship to llCSV2List)
Jump to navigation Jump to search

Summary

Function: string llList2CSV( list src );

Returns a string of comma separated values taken in order from src.

• list src

More precisely the values are separated with a comma and a space (", ").

This function's functionality is equivalent to llDumpList2String(src, ", ");

The result of this function is more or less the "Wikipedia logo"CSV format, but it does not conform in all its details.

To reverse the process use llCSV2List. But see the Caveat.

Caveats

  • llCSV2List will not reverse the process if there are commas in any of the original strings. One way around this is to first use llEscapeURL on any user-supplied strings before adding them to the list. llUnescapeURL will reverse llEscapeURL.
All Issues ~ Search JIRA for related Bugs

Examples

<lsl>default {

   state_entry()
   {
       list my_list = [1, 2.0, "a string", llGetPos(), llGetRot(), llGetOwner()];
       llOwnerSay(llList2CSV(my_list));        
   }
}</lsl>

See Also

Functions

•  llCSV2List
•  llDumpList2String
•  llParseString2List
•  llParseStringKeepNulls

Articles

•  Typecast

Deep Notes

Search JIRA for related Issues

Signature

function string llList2CSV( list src );