Difference between revisions of "TrimList"
Jump to navigation
Jump to search
Ugleh Ulrik (talk | contribs) (Created page with "this function will trim a list of strings for the output of a dialog box. '''Function''' <lsl> list TrimList(list dlist, integer length) { integer i; list temp = []; …") |
Ugleh Ulrik (talk | contribs) |
||
Line 5: | Line 5: | ||
list TrimList(list dlist, integer length) | list TrimList(list dlist, integer length) | ||
{ | { | ||
integer | integer dlist = llGetListLength(dlist)+1; | ||
list temp = []; | list temp = []; | ||
while(~--dlist) | |||
temp += llGetSubString(llList2String(dlist,i),0, length-1); | |||
return temp; | return temp; | ||
} | } |
Revision as of 19:09, 20 October 2011
this function will trim a list of strings for the output of a dialog box.
Function <lsl> list TrimList(list dlist, integer length) {
integer dlist = llGetListLength(dlist)+1; list temp = []; while(~--dlist) temp += llGetSubString(llList2String(dlist,i),0, length-1); return temp;
}
</lsl>