Search / replace

Jim Bufalini jim at visitrieve.com
Sat Feb 20 20:04:24 CST 2010


Kee Nethery wrote:

> This may not be the fastest but I think it is easy to grok a year later
> when you are revisiting the code
> 
> repeat with x = 0 to 9
>   replace (x & "[") with (x & "_") in theField
> end repeat

Another good and different take, Kee. :-) Just, did you intend to have the
line:

replace "[" with empty in theField

after the repeat loop? 

Thanks for sharing Kee and reinforcing again that there is always yet
another way to do it in Rev!

Aloha from Hawaii,

Jim Bufalini




More information about the use-livecode mailing list