TRIM command?

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


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

HTH,

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