Repeat until (0r "while") not working
Ken Ray
kray at sonsothunder.com
Tue Aug 9 22:36:17 EDT 2005
On 8/9/05 8:17 PM, "Sivakatirswami" <katir at hindu.org> wrote:
> I'm missing something very simple here,
>
> Goal: delete empty lines beginning and end of text chunk
Try this:
function trim pWhat
local tRetVal
get matchText(pWhat, "(?s)^\s*(.*?)\s*$", tRetVal)
return tRetVal
end trim
Trims all forms of whitespace (CRs, spaces, tabs, etc.) from the beginning
and end of a text chunk.
Ken Ray
Sons of Thunder Software
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode
mailing list