Version 6.3.13 for Windows
 —  Editors  —

Replacing Text

You can replace any string of characters contained in the source code of an active editor window.

By default, Replace restarts a search from the beginning when the end of the source code is reached. However, you can change the default setting and instruct Replace to terminate when the end of the source is reached by setting the Stop find at end editor option described in Program Editor Options in the Using Natural Studio documentation.

Start of instruction setTo replace a character string

  1. From the Edit or context menu, choose Replace.

    Or:
    Choose the following toolbar button:

    graphics/pgm_win_replace.png

    Or:
    Press CTRL+H.

    The Replace dialog box appears.

  2. In the Replace dialog box, you can specify the following:

  3. Choose the button Find Next, Replace or Replace All to execute the find and/or replace function.

    Depending on the setting of the Search up check box, the find and/or replace goes down or up the source code from the current caret position. If no instance of the search string is found, a corresponding message is displayed. If an instance of the search string is found, the following applies:

  4. If the first instance of a search string is selected, you can go to the next instance by choosing one of the following methods:

    From the Edit or context menu, choose Find Next or Replace Next.

    Or:
    Choose one of the following toolbar buttons:

    graphics/pgm_win_find_next.png for Find Next

    graphics/pgm_win_replace_next.png for Replace Next

    Or:
    Press F3 for Find Next or CTRL+F3 for Replace Next.

  5. You can choose the Close button to close the Replace dialog box. However, you can also edit the current source when the Replace dialog box is open.

    When the Replace dialog box is closed, you can continue the find and/or replace functions by using the alternative methods described earlier in Step 4.

Top of page