#### Declare/Define Variables, Functions, or Subroutines

To declare and/or define variables, functions, or subroutines that are to be accessible from all BASIC code in a report, use the LocalDecls property of The Frame/The View found on the PC-DMIS tab of the Property Sheet. To do this:

1. Open the Property Sheet for an object.

2. Select The Frame/The View from the drop-down list.

3. Click on the PC-DMIS tab.

4. double-click on the LocalDecls item on the property sheet. A VBS Mini-Editor appears.

You may add any BASIC code you wish to this window, including variable declarations and function or subroutine definitions. Any variables, functions, or subroutines declared here will be global, but will not appear in the Script Wizard.