The Find/Replace dialog allows you to search and replace a string in the current (.w) procedure file. This option works in both the View Source and Section Editor modes.
When working in the Section Editor mode, the search is limited to only the code section that is open. The search does not run through the complete code of the procedure file.
Note: You can search for a string through both the read-only and editable code of an AppBuilder file, but the replace options are available only with the editable sections of the code.
To use the find and replace option:
1. Open an AppBuilder procedure (.w) file in the source view.
2. Open the Find/Replace dialog by doing one of the following:
From the main menu, click Edit > Find/Replace.
Press CTRL+F.
Note: The Find/Replace option is not available with the read-only or auto-generated code sections of the AppBuilder procedure file.
The Find/Replace dialog appears with a list of search and replaces options.
3. In the Find field, enter a search string. This is an instance of code or text you want to search in the procedure file.
Note: You can also select text in the procedure file, and then click CTRL+F. The Find/Replace dialog appears with the selected text in the Find field.
4. In the Replace with field, enter a replacement string. This is the code or text you want to use to overwrite one or all instances of the search string.
5. In the Direction section, select one of the following:
Forward - to search from the insertion point to the end of the file.
Backward - to search for the string from the insertion point toward the beginning of the file.
6. In the Scope section, select one of the following:
All - to search the entire/through all the code sections in a procedure file.
Selected lines - to search in a selected section of code in a procedure file.
7. In the Options section, select any of the following check boxes:
Case sensitive - to search only occurrences of the text that match the case of the string specified in the Find field.
Wrap search - to continue searching from the beginning to the end of the file, once it reaches the end (depending on the search direction).
Whole word - to look for the entire specified search string.
Incremental - to progressively search and filter through text in the active editor. As you type the search expression, it will incrementally jump to the previous exact match in the active editor.
Regular expressions - to search using wildcards or regular expressions. If you select this check box, you can specify whether the search will include wildcards or regular expressions, in the Find field.
8. Click Find to start searching for the string specified in the Find field. After an item is found, click one of the following buttons:
Replace - to replace only the current instance of search string.
Replace/Find - to replace the current occurrence of the search string and find the next occurrence.
Replace All - to replace all occurrences of the search string in the current (.w) procedure file.