TRIM command?

Mark Schonewille m.schonewille at
Fri May 19 05:42:34 EDT 2006

Hi Sarah,

If theStr contains a string with multple spaces that you want to  
replace with single spaces, try:

replacetext(theStr," +"," ")




Consultancy and Software Engineering

Salery is the easiest way to get your own web store on-line: http://

Op 18-mei-2006, om 23:05 heeft Sarah Reichelt het volgende geschreven:

> If there could be extra spaces between words, then this is what I use:
> put empty into myTrimmedText
> repeat for each word w in myText
>  put w & space after myTrimmedText
> end repeat
> delete last char of myTrimmedText  -- get rid of last space
> HTH,
> Sarah

More information about the Use-livecode mailing list