why is "replace" grayed out on "Find and Replace" dialog?

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
labrat
Posts: 32
Joined: Mon Dec 29, 2014 6:17 pm

why is "replace" grayed out on "Find and Replace" dialog?

Post by labrat » Mon Feb 09, 2015 4:56 pm

I click on Find and Replace in the menu and I get a find and replace dialog but the replace buttons are grayed out. How can I activate the replace buttons?

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: why is "replace" grayed out on "Find and Replace" dialog

Post by dunbarx » Mon Feb 09, 2015 5:16 pm

Hi.

I assume you are in the debugger, and not in the IDE tool in the "edit" menu.

Are you trying to look in the "stack" or "stack file"? The options will be greyed out there. Change to "current tab" or "all tabs". This tool is meant to replace text in the currently visible script, or group of scripts, and not in every location in the stack.

But do play around with the IDE tool, which is fabulous, and is IDE-centered, not script centered.

Craig Newman

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: why is "replace" grayed out on "Find and Replace" dialog

Post by jacque » Tue Feb 10, 2015 8:26 pm

Assuming you mean the Find and Replace in the Edit menu, run the Find first. If it finds any matches, the Replace fields will enable.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: why is "replace" grayed out on "Find and Replace" dialog

Post by dunbarx » Tue Feb 10, 2015 9:04 pm

Jacque.

Because labrat said "replace buttons" I assume it is the debugger gadget, not the IDE one. This has "replace" and "replace all".

The only reason I am writing back is to ask you if my explanation is correct, that is, that only script tabs, and not larger objects like stacks or stack files are accessible. But then why are they included, if always grayed out?

Craig

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7389
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: why is "replace" grayed out on "Find and Replace" dialog

Post by jacque » Tue Feb 10, 2015 9:58 pm

I guess we'll find out if he answers. Since he said "in the menu" I assumed it was the Edit menu and that "buttons" really meant "button". In the script editor's Find and Replace, the only time "replace all" is available is if the scope is either the "current tab" or "all tabs".

The other buttons are included because the same dialog is used for all scopes and I suppose it was just easier that way.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply