Finding variable, function, and subroutine references in scripts

You can find all places where variables, functions, and subroutines are referenced in scripts in the open workspace. When you are modifying or debugging scripts, you can use this information to determine the impact of a change before updating a variable, function, or subroutine name or definition.

The search results only include where a variable, function, or subroutine is declared and called in scripts. References in commented script lines and values that do not refer to the selected variable, function, or subroutine, such as text in statement arguments, are not included.

Tip: To quickly find where a user-defined variable, function, or subroutine is declared, select it and choose Script > Go To Definition. See Finding variable, function, and subroutine definitions in scripts.

1. Select the variable, function, or subroutine in a script and choose Script > Find All References.

The number of references found in the workspace is displayed in the References pane. Each result shows the script name, line number, and text with the reference underlined.

2. Double-click a reference to open the script.

The script opens and the line with the reference is selected.

Note: You can work with the results in the References pane until you perform another search or close QA Wizard Pro.