Go to Glossary Search VisualAge C++ Help Go to VisualAge C++ Help Home Page Go to WWW VisualAge C++ Site

Editor - Find and Replace

This dialog box lets you find, or find and replace, a string of text in the current file view. Options let you restrict the search to only selected text, or expand the search to include all files open in the Editor. Other options let you further control the extent and effects of the find and replace operation.

Find the text string or pattern expression you want to find. If you are entering a pattern expression, you must also select the Pattern match option.
Replace with the text string that you want to use to replace the text specified in the Find field.

Note: If this field is left empty and the Replace button is selected, any or all occurrences of the text specified in the Find field is deleted, depending on the Find options selected.

Replace this occurrence gives you control over how the Editor searches for and replaces text. Select any one of the replace actions described below by clicking the corresponding button in the Find and Replace dialog box.
Replace this occurrence Select this button if you want only the next occurrence of the search item replaced.
Replace, then find next Select this button if you want to replace the next occurrence of the search item. If the search item is found, it is replaced with the specified text and the Editor then looks for the next occurrence of the search item.
Replace all occurrences Select this button if you want all occurrences of the search item to be replaced with the specified text.
Case sensitive specifies whether the find feature is to respect or ignore character case. If this option is selected, only those character strings that exactly match the text in the Find field (including uppercase and lowercase characters) will be found.

If this option is not selected, all character strings matching the text in the Find field will be found, regardless of whether individual characters are in uppercase or lowercase.

Pattern match specifies that the entry in the Find text entry field is a regular expression search pattern. The search will try to locate any expression that matches the regular expression.
Wrap searches all text in the current file, including that preceding the cursor position. If you do not select this option, text is searched, depending on search direction, only until the beginning or end of file.
Find searches for the text specified in the Find text entry field, using the find options selected.
Replace searches for and replaces the text specified in the Find text entry field, using the replacement text and find options selected.
Options opens the Find and Replace - Options dialog box, where you can specify additional options for the find and replace operation.
Cancel closes the Find and Replace dialog box.