-

Local Text Search/Replace in the HMI Editor

The HMI editor provides a local search/replace function with which you can find/replace object and symbol names, comments, etc., in the active page. Also observe the project-global FIND AND REPLACE function located in the Cross Function Area.

The local search/replace function helps you to find and replace elements in the active worksheet. The search finds all elements that contain the search string in their name, comment, etc.

Note
The function is restricted to the worksheet/page where it has been called.

Find and replace text as follows:
  1. Open the search/replace bar by pressing <Ctrl> + <F> (the 'Find what' field gets the focus), <Ctrl> + <H> (the 'Replace with' field gets the focus), or click the button on the worksheet's toolbar. The bar appears below the worksheet's toolbar.

    Alternatively, select any text in the editor and press <Ctrl> + <F> or <Ctrl> + <H>. The bar will open with the selected text entered in the 'Find what' field.

  2. Enter the text to be found into the 'Find what' field or select a previous search string from the drop-down list in the input field.
  3. Optionally, click the option button on the search bar and activate the desired find options. You can use wildcards or regular expressions. Refer to the section below.

    Note
    Incorrect 'Find options' may lead to an invalid search result. Make sure that the checked options are suitable for the entered search string.

  4. Click the 'Continue search' button or press <Enter> to jump to the first found occurrence of the search string.

    To search forward, click the 'Continue search' button or press <F3>. To search backward, press <Shift> + <F3>.

  5. To replace found text, enter the desired string into the 'Replace with' field.
    • Click 'Replace' (shortcut <Alt> + <R>) to replace only the occurrence selected in the result list.
    • Click 'Replace All' (shortcut <Alt> + <A>) to replace all occurrences of the found string, independently of the selection in the worksheet.

Note
When closing the search bar, the entered search string is retained. Pressing <F3> in the current worksheet finds the next occurrence of the search string and <Shift> + <F3> the previous occurrence.
The search string is deleted when you close the worksheet.

Find options

Regular expressions

Toolbar and keyboard shortcuts for local text search/replace