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 TheFrame/TheView found on the PC-DMIS tab of the Property Sheet.

To do this:

  1. Open the Property Sheet for an object.

  2. Select TheFrame/TheView from the list.

  3. Click the PC-DMIS tab.

  4. Double-click the LocalDecls item on the property sheet to display the VBS Mini-Editor.

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