Using script editing features
The Script tab of the Rule editor window displays the text of a rule script. VBScript keywords and names of objects, methods, and arguments are color-coded for easy recognition. When working in the Script tab, you can use the following editing features:
- Pick a method for a rule object by selecting the method from a pop-up list.
- Build the RefName path of a control by picking RefNames from a list.
- Insert or remove bookmarks.
- Cut, copy, paste, undo, and redo typing.
The following table provides details about each of these features:
Tool |
Description |
---|---|
Pop-up methods list |
When you type the name of a rule object and follow it with a period, the InForm Architect application displays a pop-up list of the methods associated with the object To insert the name of a method, click its name in the list or scroll to it and press Enter. |
Build RefName |
You can pick the RefName path of a control by using the Build RefName tool. For information on how to use this tool, see Using the Build RefName tool. |
Toggle Bookmark |
The InForm Architect application enables you to insert a bookmark into the body of your script text, or to remove a previously inserted bookmark. You can use the buttons in the Edit toolbar to navigate from bookmark to bookmark. To insert a bookmark: 1. Place the cursor on the line where you want to insert the bookmark. 2. Right-click in the Rule editor window. 3. Choose Toggle Bookmark from the pop-up menu. To remove a bookmark, follow the same steps, but begin by placing the cursor on the line containing the bookmark you want to remove. |
Undo |
When you change the text in a script window by typing or by cutting, copying, or pasting, you can undo the previous edit. Right-click in the Rule editor window, and choose Undo from the pop-up menu. |
Redo |
After undoing a change, you can reinstate it. Right-click the Rule editor window, and choose Redo from the pop-up menu. |
Cut |
To cut a selection of text and store it in the Microsoft Windows Clipboard: 1. Highlight the text to cut. 2. Right-click in the Rule editor window. 3. Choose Cut from the pop-up menu. |
Copy |
To copy a selection of text and store it in the Microsoft Windows Clipboard: 1. Highlight the text to copy. 2. Right-click in the Rule editor window. 3. Choose Copy from the pop-up menu. |
Paste |
To paste the contents of the Microsoft Windows Clipboard into a selected location: 1. Place the cursor where you want to paste the text. 2. Right-click in the Rule editor window. 3. Choose Paste from the pop-up menu. |
The following figure illustrates the Pop-up methods list:
Note: If you type the text of a rule script directly into the Rule editor window, each time you type the name of an object, the InForm Architect application displays the methods associated with the object in a pop-up list from which you can select the method you want.
The following figure illustrates the Build RefName tool dialog box: