Ltrim

From Director Online Wiki
Jump to: navigation, search
on ltrim(str, charlist) -- function.ltrim.php
  if (NOT stringP(charlist)) then 
    charlist = " "&TAB&numToChar(10)&RETURN&numToChar(0)&numToChar(11)
  end if
  
  repeat while (offset(char 1 of str, charlist))
    delete char 1 of str
  end repeat
  
  return str
end --[[User:Cole|CBT]] 14:18, 19 Oct 2005 (MDT)