Find and Replace not working for me

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Robertel
Posts: 10
Joined: Sat Nov 02, 2013 6:21 am

Find and Replace not working for me

Post by Robertel » Fri Nov 22, 2013 6:07 am

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

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Find and Replace not working for me

Post by Simon » Fri Nov 22, 2013 6:25 am

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Robertel
Posts: 10
Joined: Sat Nov 02, 2013 6:21 am

Re: Find and Replace not working for me

Post by Robertel » Fri Nov 22, 2013 6:49 am

I hope I'm not violating forum etiquette rules by posting a message that just says thanks, but ...

Thanks, Simon!

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Find and Replace not working for me

Post by Simon » Fri Nov 22, 2013 6:56 am

etiquette rules by posting a message that just says thanks
No Problem!

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4174
Joined: Sun Jan 07, 2007 9:12 pm

Re: Find and Replace not working for me

Post by bn » Fri Nov 22, 2013 9:49 am

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

Robertel
Posts: 10
Joined: Sat Nov 02, 2013 6:21 am

Re: Find and Replace not working for me

Post by Robertel » Fri Nov 22, 2013 8:51 pm

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. :D

Robert

Post Reply