Use the Script view to code functions and events, define your own funtions and events, and declare variables and external functions.
Script views are part of the default layout in the Application, Window, User Object, Menu, and Function painters.
There are three drop-down lists at the top of the Script view.
In the first list, you can select the object, control, or menu item for which you want to write a script. You can also select Functions, Indexers, Properties, Enumerations, Structures to edit those, or Declare to declare variables.
The second list lets you select the specific item you want to edit or the kind of declaration you want to make, based on the selection in the first list. A script icon next to an event name indicates there is a script for that event, and the icon's appearance tells you more about the script:
If there is a script | The script icon displays |
---|---|
For the current object or control | With text |
In an ancestor object or control only | In color |
In an ancestor as well as in the object or control you are working with | Half in color |
The same script icons appear in the Event List view.
The third list is available in descendant objects. It lists the current object and all its ancestors, so you can view scripts in the ancestor objects.