Replacing A Character String in One Component
You can replace all occurrences of a character string in one component at once.
- Find the character string you want to replace as described in Replacing Selected Character Strings.
- In the Find/Replace (ESDL and C Code only) window, enter the new text in the Replace with field.
Highlight the component within which you want to replace the character string.
With that, all occurrences of the character string in the component are selected.
Click Replace.
If you selected a write-protected component,
another step is inserted.
A message opens:
Replace Code is not possible for the following
non modifiable components:
<list of write-protected components>
Continue with modifiable components?
Proceed as follows:
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.
Click No to return to the Find/Replace (ESDL and C Code only) window.
Or
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.
All occurrences of the character string in the selected component (for C code: including all implementations and targets) are replaced by the new text.
See also
Finding a Character String
Viewing the Search Results
Opening the Component from the Search Window
Replacing Selected Character Strings
Replacing A Character String in the Database/Workspace
Find and Find/Replace Dialog Windows