Page 1 of 1
Find and Replace not working for me
Posted: Fri Nov 22, 2013 6:07 am
by Robertel
Coding in other languages, I make frequent use of find and replace. Doesn't everyone? From the Code Editor menu, I select Edit>Find and Replace ...(or Ctrl+Shift+F). In the resulting dialog window, the "Find Next"," Replace", and "Replace all" buttons are all grayed-out. Only the "Find All" button is functional. Doesn't matter if I fill in the "Find What:" field, the "Replace with:" field and/or press the "Find All" button. Changing "Look in:" option or find options also has no effect on the grayed-out buttons. This is always the case, even if I restart LiveCode, create a new stack, and create a simple button script to edit. What's going on? Is there something wrong with my installation?
I am running Live Community 6.1.0 on a Windows 7 64 bit PC.
For what it's worth, Find and Replace from the main IDE window, doesn't seem to work properly either.
Thanks in advance
Re: Find and Replace not working for me
Posted: Fri Nov 22, 2013 6:25 am
by Simon
Hi Robertel,
Welcome to the forums!
From the script editor Edit > Find and Replace >Look in: All Tabs or Current tab will enable the Find next etc.
From the Main menu Edit > Find and Replace
You have to find the text first then Replace with will be enabled.
Simon
Re: Find and Replace not working for me
Posted: Fri Nov 22, 2013 6:49 am
by Robertel
I hope I'm not violating forum etiquette rules by posting a message that just says thanks, but ...
Thanks, Simon!
Re: Find and Replace not working for me
Posted: Fri Nov 22, 2013 6:56 am
by Simon
etiquette rules by posting a message that just says thanks
No Problem!
Simon
Re: Find and Replace not working for me
Posted: Fri Nov 22, 2013 9:49 am
by bn
Hi Robert,
For what it's worth, Find and Replace from the main IDE window, doesn't seem to work properly either.
It is working, just a bit funny. If you e.g. search in "scripts" and "This Stack" and when it says "found xxx in script" then you have to make the display field a little larger by dragging the bottomRight handle of the search stack and it shows the occurrences of the hits.
It works actually very well but has room for improvement in interface...
Kind regards
Bernd
Re: Find and Replace not working for me
Posted: Fri Nov 22, 2013 8:51 pm
by Robertel
Hi Bernd,
Thanks for your helpful comment. I now realize that my real misunderstanding about Find and Replace from the main IDE window was misinterpreting the text of the dialog window "Scripts externally modified" that appears after pressing the "Replace All" button.I now see that you must press "Reload" to effect the changes, but I was pressing "Cancel" because I was erroneously thinking of "Reload" as revert to earlier (unchanged) version. The caveat "Note that reloading will lose any unsaved changes" reinforced my incorrect interpretation.
With forum help, which has been great so far, I'll get there eventually.
Robert