The default layout in the Application, Window, and User Object painters includes a Script editor set up to declare variables. Keeping a separate Script editor open makes it easy to declare any variables or external functions you need to use in your code without closing and compiling the script.
To declare variables and external functions:
-
Select [Declare] from the first list in the Script editor.
-
Select the variable type (instance, shared, or global) or the function type (local or global) from the second list.
-
Type the declaration in the Script editor.
For more information about declaring variables, see the section called “Declaring variables” in PowerScript Reference. For more information about declaring and using external functions, see the section called “Declaring external functions” in PowerScript Reference and the section called “Declaring external functions” in Application Techniques.