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.
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).
In the Find what field, enter the character string you want to replace.
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.
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.
Find the component in which you want to replace the character string and expand the method/process list.
Select one or more occurrences of the character string.
The Replace button is now activated.
- Click Replace.
If you selected an occurrence in a write-protected component,
another step is inserted. The selected occurrences of the character string are replaced by the new text. The relevant lines disappear from the Found Items list.
See also
Opening the Component from the Search Window
Replacing All Character Strings in One Component