TrimList

From Second Life Wiki
Revision as of 14:44, 22 January 2015 by ObviousAltIsObvious Resident (talk | contribs) (<lsl> tag to <source>)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

this function will trim a list of strings for the output of a dialog box.

Function

list TrimList(list dlist, integer length) 
{
    integer i;
    integer dl = llGetListLength(dlist);
    list temp = [];
    while(~--dl)
        temp += llGetSubString(llList2String(dlist,i++),0, length-1);
    return temp;
}