Replacing Selected Character Strings

Note

Be careful using the Replace function – there is no undo!

You can replace selected occurrences of a character string in ESDL or C code components.

  1. In the Component Manager, do one of the following:

    • Open the Edit menu and select Find/Replace code.

    • Press <Ctrl> + <h>.

    The Find/Replace (ESDL and C Code only) dialog window opens. Except for the "Replace with" field and the Replace button, this window is the same as the simple search window (see Find and Find/Replace Dialog Windows).

  2. In the Find what field, enter the character string you want to replace.

  3. Enter the new text in the Replace with field.

    If you have performed other replace operations, you can select one of the previous terms from the combo box of the field.

  4. Click Find to search for occurrences of the old character string.

    Note

    The order of the previous two steps (3 and 4) is irrelevant.

    You can expand the displayed components as described in Viewing the Search Results.

  5. Find the component in which you want to replace the character string and expand the method/process list.

  6. Select one or more occurrences of the character string.

    The Replace button is now activated.

  7. Click Replace.
  8. If you selected an occurrence in a write-protected component, Closedanother step is inserted.

    1. Proceed as follows:

      1. Activate Remember my Decision if you want to apply your answer to all such cases.

        You can revoke this setting in the ASCET options window, Confirmation Dialogs node.

      2. Click No to return to the Find/Replace (ESDL and C Code only) window.

        Or

      3. In the message window, click Yes to continue the procedure for the modifiable components in your selection.

        If your selection contains only write-protected components, another message opens: No modifiable components left. Use OK to return to the Find/Replace (ESDL and C Code only) window.

    The selected occurrences of the character string are replaced by the new text. The relevant lines disappear from the Found Items list.

See also

Finding a Character String

Viewing the Search Results

Opening the Component from the Search Window

Replacing All Character Strings in One Component

Replacing All Character Strings in the Database/Workspace

Find and Find/Replace Dialog Windows