Progress
Basic Development
Tools


Searching for Text

You can search for text in the current buffer using the following menu options:

Finding Text

Follow these steps to search for text in the current buffer:

  1. Choose Search Find. Progress displays the Find dialog box:
  2. Enter the text string you want to find.
  3. If you have searched for a string in the current session, the Find What field displays the text string for which you last searched. If your search is not case sensitive (that is, you do not select the Match Case option in the Find dialog box), the string you supply can be uppercase, lowercase, or both. Otherwise, enter it exactly as you want to search for it.

  4. Specify whether the search is case sensitive using the Match Case option.
  5. Specify whether to wrap to the beginning or end of the current buffer when the search reaches the opposite end of the buffer.
  6. Specify whether to search forward or backward through the current buffer by selecting the up or down options.
  7. Choose OK.

The Procedure Editor searches for the first occurrence of the string in the direction you specify. When it finds a match for the search string, it positions the cursor at the end of the search string. You can choose Search Find Next or Search Find Previous to find the next or previous occurrence of the text. The Procedure Editor displays an alert box if it does not find a match.

Finding the Next or Previous Occurrence of Text

If you have used the Search Find option in the current session, you can search for text using the Search Find Next or Search Find Previous menu options. The Procedure Editor searches for the text you specified in the Find What field of the Find dialog box in the forward direction (Next) or reverse direction (Previous).

If you have not previously used the Search Find option in this session, Progress displays an alert box when you select Search Find Next or Search Find Previous.

Replacing Text

Follow these steps to search for and replace text in the current buffer:

  1. Choose Search Replace.
  2. Enter the text string you want to find. The Replace dialog box appears:
  3. If you have searched for a string in the current session, the Find What field displays the string for which you last searched. If your search is not case sensitive (that is, you do not select the Match Case option in the Replace or Find dialog box), the string you supply can be uppercase, lowercase, or both. Otherwise, enter it exactly as you want to search for it. You cannot use wildcard characters when specifying the find string.

  4. Enter the string with which you want to replace the specified string.
  5. Specify if the search is case sensitive.
  6. Choose the Replace All button if you want to replace all occurrences of the search string with the new string without confirming each occurrence.
  7. Choose OK.

The Procedure Editor searches for the first occurrence of the string in a forward direction. If you do not choose the Replace All button, the Editor prompts you to confirm the replacement for each occurrence of the string it finds. If you choose the Replace All button, the Editor automatically replaces each occurrence of the string with the text in the Replace With field. When complete, the Editor displays an information alert box indicating the Replace All task is complete and displaying the number of occurrences replaced.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095