How to delete trailing spaces in a line
Mark Smith
mark at maseurope.net
Tue Oct 24 12:58:03 EDT 2006
I son't know about the rest of it, but in the code below, you're
stripping the line endings of any line that ends with a space, as
well as stripping the space, so you need to replace the space & cr
with cr, if you see what I mean...
put space & "+" & return into vStringToStrip
replaceText(vMyContainer,vStringToStrip,cr)
Best,
Mark
On 24 Oct 2006, at 18:49, Mark Powell wrote:
> Thanks for the reply, Mark. However, it must be at the end of line
> only. In addition, I need to do the operation on a container in one
> call, preferably using replaceText. I am having problems with
>
> ...
> put space & "+" & return into vStringToStrip
> replaceText(vMyContainer,vStringToStrip,empty)
> ...
>
>
> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Mark
> Smith
> Sent: Tuesday, October 24, 2006 10:03 AM
> To: How to use Revolution
> Subject: Re: How to delete trailing spaces in a line
>
> put word 1 to -1 of tLine into tLine - though this will also remove
> spaces at the beginning of the line.
>
>
> Best,
>
> Mark
>
> On 24 Oct 2006, at 17:10, Mark Powell wrote:
>
>> I want to delete all spaces at the end of a line, be they a single
>> space 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:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list