On 13 Apr 2005, at 21:47, Trevor DeVore wrote:
snip
Is there a way to do ltrim (trim whitespace on left of string) in
plain transcript? Right now I just use:
function str_lTrim pString
get replaceText(pString, "^[ \t\r\n]+", "")
return it
end str_lTrim
--
Trevor DeVore
Blue Mango Multimedia
[EMAIL PROTECTED]
In plain transcript one could do:
function str_lTrim pString
return char 1 to -2 of word 1 to -1 of (it & "x")
end str_lTrim
But it is about 2 times slower than the regex solution in this case.
So the choice is obvious :-)
Wouter
_______________________________________________
use-revolution mailing list
[email protected]
http://lists.runrev.com/mailman/listinfo/use-revolution