Replace with

Sarah Reichelt sarah.reichelt at gmail.com
Thu May 18 17:02:40 EDT 2006


Not the best, but I do love "repeat for each" :-)
Sarah


On 5/19/06, Camm29 <Camm29 at tesco.net> wrote:
> Great
> Someone said you were the best !
> Camm
> ----- Original Message -----
> From: "Sarah Reichelt" <sarah.reichelt at gmail.com>
> To: "How to use Revolution" <use-revolution at lists.runrev.com>
> Sent: Thursday, May 18, 2006 9:46 PM
> Subject: Re: Replace with
>
>
> On 5/19/06, Camm29 <Camm29 at tesco.net> wrote:
> > It may be simple but I failed.
> >
> > i need a Simple way to achieve ,
> >
> > replace "0:" with "" in data
> > replace "1:" with "" in data
> > replace "2:" with "" in data
> > replace "3:" with "" in data
> > replace "4:" with "" in data
> > replace "5:" with "" in data
> > replace "6:" with "" in data
> > replace "7:" with "" in data
> > replace "8:" with "" in data
> > replace "9:" with "" in data
> > replace "A:" with "" in data
> > replace "B:" with "" in data
> > replace "C:" with "" in data
> > replace "D:" with "" in data
> > replace "E:" with "" in data
> > replace "F:" with "" in data
>
> Untested, but should do the job:
>
> put "0123456789ABCDEF" into tChars
> repeat for each char c in tChars
>   replace c & ":" with "" in data
> end repeat
>
> If you want to replace "A:" but not "a:", then set the caseSensitive
> to true first.
>
> Cheers,
> Sarah
> _______________________________________________
> 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
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.0.392 / Virus Database: 268.6.0/342 - Release Date: 17/05/2006
>
>
>
> _______________________________________________
> 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