Difference between revisions of "LlList2CSV"
Jump to navigation
Jump to search
(Undo revision 76902 by Chaz Longstaff (Talk) example didn't compile) |
|||
Line 2: | Line 2: | ||
|func_id=195|func_sleep=0.0|func_energy=10.0 | |func_id=195|func_sleep=0.0|func_energy=10.0 | ||
|func=llList2CSV|return_type=string|p1_type=list|p1_name=src | |func=llList2CSV|return_type=string|p1_type=list|p1_name=src | ||
|func_footnote=This is | |func_footnote=More precisely the values are separated with a comma and a space (", ").<br/> | ||
This function's functionality is equivalent to <code style="white-space: nowrap;">[[llDumpList2String]]('''src''', ", ");</code><br/> | |||
Do not confuse this function with the {{Wikipedia|CSV|CSV}} format, it is ''not'' the CSV format. | Do not confuse this function with the {{Wikipedia|CSV|CSV}} format, it is ''not'' the CSV format. | ||
To reverse the process use [[llCSV2List]]. | |||
|func_desc | |func_desc | ||
|return_text= | |return_text=of comma separated values taken in order from '''src'''. | ||
|spec | |spec | ||
|caveats | |caveats | ||
|constants | |constants | ||
|examples= | |examples=<lsl>default | ||
{ | |||
state_entry() | |||
{ | |||
state_entry(){ | |||
list my_list = [1, 2.0, "a string", llGetPos(), llGetRot(), llGetOwner()]; | list my_list = [1, 2.0, "a string", llGetPos(), llGetRot(), llGetOwner()]; | ||
llOwnerSay(llList2CSV(my_list)); | llOwnerSay(llList2CSV(my_list)); | ||
} | } | ||
}</ | }</lsl> | ||
|helpers | |helpers | ||
|also_functions={{LSL DefineRow||[[llCSV2List]]}} | |also_functions={{LSL DefineRow||[[llCSV2List]]}} |
Revision as of 05:05, 8 July 2008
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 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, ", ");
Do not confuse this function with the CSV format, it is not the CSV format.
To reverse the process use llCSV2List.
Caveats
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 |