TrimList

From Second Life Wiki
Revision as of 20:09, 20 October 2011 by Ugleh Ulrik (talk | contribs)
Jump to navigation Jump to search

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>