Search and Replace (Backend Editor) 

Use

You can search for any character string, either in the current source code, or in the source code of the corresponding main program (global search). You can use search options to restrict the scope of the search. As well as searching for a particular character string, you can also search generically.

Procedure

Simple Local Search

  1. Choose Search or .
  2. The Find and Replace dialog box appears.

    Enter your search string.

  3. Choose .
  4. The system searches from the current cursor position. If it finds the search string in the current source code, it positions the cursor before it.

  5. To find the next occurrence of the search string, choose .

Restricted or Generic Search

  1. Choose Edit ® Find/replace.
  2. The Find and Replace dialog box appears.

  3. Enter your search string.
  4. If you want to run a generic search, use the * (asterisk) character to represent any string. For example, if you enter st*r , the system will stop at both star and steer .
    If you want to set a placeholder for a single character, use the + (plus sign). For example, if you entered
    st+r , the system would find star , but not steer .

    Use the pound sign ( # ) as an escape character. For example, to find the string 1+2 , enter 1#+2 as your search string.

  5. If required, restrict the scope of the search using the following options:
  6. As a string

    The system stops at the search string if it is a whole word or a part of a word

    As a word

    The system stops at the search string only if it is a whole word

    Upper-/lowercase

    The system stops at the search string only if it is written with the same combination of upper- and lowercase letters

  7. If you want to search the whole main program, select In main program.
  8. Choose .
  9. If the system finds the search string in the source code, it displays a hit list of the locations where it was found.

  10. Double-click the entry you want to see.

The system places the cursor at the beginning of the line containing the string.

Replacing a String

  1. Choose Edit ® Search/replace.
  2. The Find and Replace dialog box appears.

  3. Enter the search string.
  4. Select the Replace with option and enter the replace string.
  5. Enter any other options to restrict the search.
  6. If you want to search the whole main program, select In main program.
  7. Choose .
  8. If the system finds the search string in the source code, it displays a hit list of the locations where it was found.

  9. Choose the first entry from the list, followed by Replace.

If you are sure that you want to replace the search string wherever it occurred, you can select the first location and then choose From cursor position w/o confirmation.