TRIM command?

Mark Schonewille m.schonewille at economy-x-talk.com
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," +"," ")

Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Salery is the easiest way to get your own web store on-line: http:// 
www.salery.biz/salery.html



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

<snip>
>
> 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