Page 1 of 1

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

Posted: Mon Feb 09, 2015 4:56 pm
by labrat
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?

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

Posted: Mon Feb 09, 2015 5:16 pm
by dunbarx
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

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

Posted: Tue Feb 10, 2015 8:26 pm
by jacque
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.

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

Posted: Tue Feb 10, 2015 9:04 pm
by dunbarx
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

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

Posted: Tue Feb 10, 2015 9:58 pm
by jacque
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.