Search/Replace Strange Behavior

Eric Chatonet eric.chatonet at sosmartsoftware.com
Sat Jul 16 04:17:09 EDT 2005


Hi Jeanne,

This affects all routines which use the replace command especially  
with the find tool: in fields you loose the formatting and in scripts  
you loose the colorisation.

Did you mentioned that when Bugz?

Le 15 juil. 05 à 20:26, Jeanne A. E. DeVoto a écrit :

> At 9:34 AM -0700 7/15/2005, Mark Swindell wrote:
>
>>> It's a "nuance" or a "design flaw", depending on how charitable  
>>> you're feeling. The replace command treats its parameters as pure  
>>> text, so if you do something like
>>>
>>>   replace "foo" with "bar" in field "Stuff"
>>>
>>> you'll lose all formatting in the field. Replace seems to make a  
>>> copy of the target text, then do the replace operation, and then  
>>> swap the target text back into the field.
>>>
>>
>> It's a pretty nasty nuance, then.  How's that?  :)
>>
>
> Sounds about right. ;-)
>
>
>> It renders the find and replace function useless for formatted text.
>> And it did come as a shock, as it almost destroyed hours of work,  
>> because it can't be undone.  (No one had ever mentioned that I  
>> should back up my stacks regularly.) This seems like a pretty big  
>> thing that ought to be addressed by the engineering corps up in  
>> Edinborough, no?
>>
>
> Agreed. I thought there was a report on the replace command's  
> behavior, but I wasn't able to find it, so I've bugzillad this as  
> 3008 and 3009.
> -- 
> jeanne a. e. devoto ~ revolution at jaedworks.com
> http://www.jaedworks.com


Best Regards from Paris,

Eric Chatonet.
----------------------------------------------------------------
So Smart Software

For institutions, companies and associations
Built-to-order applications: management, multimedia, internet, etc.
Windows, Mac OS and Linux... With the French touch

Free plugins and tutorials on my website
----------------------------------------------------------------
Web site        http://www.sosmartsoftware.com/
Email        eric.chatonet at sosmartsoftware.com/
Phone        33 (0)1 43 31 77 62
Mobile        33 (0)6 20 74 50 86
----------------------------------------------------------------




More information about the use-livecode mailing list