Version 6.3.8 for Windows
 —  Editors  —

Finding Text

You can search for any string of characters contained in the source code of an active object window by either marking text in the source code or using the Find function where you can specify additional search criteria.

By default, Find restarts a search from the beginning when the end of the source code is reached. However, you can change the default setting and instruct Find 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 find a string by marking text

  1. Select a whole word by positioning the cursor anywhere in the word you want to find. See also To select a whole word in the section Creating and Modifying Source Code.

    Or:
    Select any series of characters. See also To select any portion of text in the section Creating and Modifying Source Code.

    Note that the character string may not span one or more lines.

  2. Press the CTRL+SPACEBAR toggle.

    All instances of the search string found are highlighted.

  3. If you want to switch highlighting off, press ESC or position the cursor anywhere within a highlighted word or in the white space areas of the source code and press CTRL+SPACEBAR.

Start of instruction setTo find a string by using the Find function

  1. From the Edit menu, choose Find.

    Or:
    Choose the following toolbar button:

    graphics/pgm_win_find_next.png

    Or:
    Press CTRL+F.

    The Find dialog box appears.

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

  3. Choose the Find Next button to execute the find function.

    Depending on the setting of the Search up check box, the find goes down or up the source code from the current caret position:

  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:

    In the Find dialog box, choose the Find Next button.

    Or:
    From the Edit menu, choose Find Next.

    Or:
    Choose the following toolbar button:

    graphics/pgm_win_find_next.png

    Or:
    Press F3.

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

    When the Find dialog box is closed, you can continue the search function by using the alternative methods described earlier in Step 4.

Top of page