Replacing Text

About this task

If you want to replace text in your code with an alternative text string, click Replace... in the Find dialog box. When you click this button, the Find dialog box changes to the Replace dialog box.

This dialog box has the following fields, options, and buttons:

  • Find what. Contains the text to search for and replace.
  • Replace with. Contains the text you want to use in place of the search text.
  • Match Case. Specifies whether to do a case-sensitive search. By default this check box is cleared. Select this check box to do a case-sensitive search.
  • Up and Down. Specifies the direction of search and replace. The default setting is Down. Click Up to search in the opposite direction.
  • Find Next. Starts the search and replace. This button is unavailable until you specify text to search for. Continue to click Find Next until all occurrences of the text have been found.
  • Cancel. Closes the Replace dialog box.
  • Replace. Replaces the search text with the alternative text.
  • Replace All. Performs a global replace of all instances of the search text.
  • Help. Invokes the Help system.