Strip

Ken Ray kray at sonsothunder.com
Wed Jul 10 16:43:01 EDT 2002


Dave,

How about a little shorter version:

  replace "(*)" & cr with cr in field x
  if char -1 of field x is cr then delete char -1 of field x

-- of course, this is only if one wants to remove a trailing cr...

Ken Ray
Sons of Thunder Software
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/

----- Original Message -----
From: "Dave Cragg" <dcragg at lacscentre.co.uk>
To: <use-revolution at lists.runrev.com>
Sent: Wednesday, July 10, 2002 3:12 PM
Subject: Re: Strip


> At 3:57 pm +0200 10/7/02, Yves Coppé wrote:
> >Hi,
> >
> >I get a problem with filter command
> >
> >I have a fld with lines.
> >some lines end with "(*)"
> >
> >something like :
> >xxx xxxxxx xxx
> >xxx xxx (*)
> >xxx xxxxxx xxx
> >xxx xxxxxx (*)
> >xxx xxxxxx xxxX
> >
> >
> >I'd like to strip the "(*)" at the end of the lines
>
> How about:
>
> put cr after field x
> replace "(*)" & cr with cr in field x
> delete char -1 of field x
>
> Cheers
> Dave
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list