How to delete trailing spaces in a line
Andre.Bisseret at inria.fr
Tue Oct 24 17:23:33 EDT 2006
OK, I am not at ease with regEx, so, might be less elegant, but this
works too :
repeat with x = 1 to the number of lines of fld "theText"
repeat until last char line x of fld "theText" is not space
delete last char of line x of fld "theText"
Best regards from Grenoble
Le 24 oct. 06 à 21:50, Jim Ault a écrit :
> I believe the original question by Mark Powell was asking about
> spaces at the end of every line in a multi-line container, then
> later the he
> described trying to use replaceText and a regular expression to do
> the job,
> which it can do. See my earlier post with one way of doing this.
> Jim Ault
> Las Vegas
> On 10/24/06 11:46 AM, "André.Bisseret" <Andre.Bisseret at inria.fr>
>> I don't claim that it is the best way, but, in order to delete all
>> spaces at the end of a field I am using :
>> repeat until last char of fld "leTexte" is not space
>> delete last char of fld "leTexte"
>> end repeat
>> which works for a line as well (I just tried it).
>> Best regards from Grenoble
>> Le 24 oct. 06 à 17:10, Mark Powell a écrit :
>>> I want to delete all spaces at the end of a line, be they a single
>>> or a couple dozen. What is the best way to do this?
>>> Mark Powell
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the Use-livecode