TRIM command?

Ken Ray kray at
Thu May 18 17:05:27 EDT 2006

On 5/18/06 3:58 PM, "mfstuart at" <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?

The basic trim for both sides would be (assume you don't use non-breaking
spaces) is:

  put word 1 to -1 of <string> into <var>


Ken Ray
Sons of Thunder Software
Web site:
Email: kray at

More information about the Use-livecode mailing list