Find and Replace Tab

Find and Replace

Figure 3-12: Find and Replace

This tab enables you to search for all the instances of a string of characters (search is not case sensitive) within the entire environment, and replace it if desired.

You can re-use one of the last ten entries or type a new text string.

Call out# Description
The operation can be performed across:
  • Dictionary: search the dictionary
  • All documents: search all files of the project and the dictionary
The search string can be with 'complete word' only. When selected, only the instances that match the complete words defined in the "Find what" field are selected (for example, a search for "MyVar" returns "MyVar" but not "MyVariable"). When this option is selected, the search is case sensitive.
To optimize your project, the Find Unused Variables option allows you to perform a search in the dictionary to locate variables not used 1 in any program. Selecting this option and clicking Find generates a list of the unused variables. You can select one or more variables (by Shift- or Ctrl-clicking) and right-click to open the context menu. The menu includes a Delete option. Double-click a variable in the list within the table widget to open it in the Dictionary.

With the Replace... button, you can replace in all documents a string with another one (or re-use one of the last ten entries). The search may be refined by forcing the search to a Whole word, and may be case sensitive or Case Insensitive.

The replace function is limited: it is not supported in the Dictionary, Pipe Network and HMIClosed"Human-machine interfaces " Also known as computer-human interfaces (CHI), and formerly known as man-machine interfaces, they are usually employed to communicate with PLCs and other computers, such as entering and monitoring temperatures or pressures for further automated control or emergency response. For those, you have to make the change manually.

Once the search is done, the results appear in the table widget at the bottom of this tab. If a replace has been performed, the Text column provides more information about the replacement.

Double-click the item you want in the list in order to open it in its relevant location (it can be a PLCClosed"Programmable Logic Controller" A Programmable Logic Controller, PLC, or Programmable Controller is a digital computer used for automation of industrial processes, such as control of machinery on factory assembly lines. Used to synchronize the flow of inputs from (physical) sensors and events with the flow of outputs to actuators and events editor or the Dictionary).

For more details, see "Find and Replace Operations".