TRIM command?

Alex Tweedly alex at
Thu May 18 17:05:33 EDT 2006

mfstuart at wrote:

>Hi all,
>Is there a RunRev TRIM command? To remove beginning and/or trailing spaces.
>If there is, I can't find it.
>If there isn't, how would I script the function for this?
AFAIK, there isn't.

If this is *within* a line (or if you don't need to worry about CR for 
some other reason), you can just do

    word 1 to -1 of tVar

If you need to worry about multi-line, you need to be careful (but most 
TRIM functions don't, so I'm going to hope you don't either :-)

Alex Tweedly

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.6.0/342 - Release Date: 17/05/2006

More information about the Use-livecode mailing list