Find and Replace tab

Find and Replace

Figure 3-6: Find and Replace

This tab is used to search for all the instances of a string of characters (search is not case sensitive) in the entire environment and replace it.

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:
  • All documents: Search all files of the project and the dictionary.
  • Dictionary: Search the dictionary.

The search string can be with a complete word only.

When this option is selected, the search is case sensitive.

When selected, only the instances that match the complete words defined in the Find what field are selected.

Example: A search for "MyVar" returns "MyVar" but not "MyVariable".

To optimize a project, the Find Unused Variables option is used to perform a search in the dictionary to locate variables not used 1 in any program.

  • Select this option and click Find to generate 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.

Use the Replace... button to replace in all documents a string with another one (or re-use one of the last ten entries).

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 applicable item in the list 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).

Location Details

See Find and Replace Operations for more information.