Creating global scripts

You can add global scripts that can be called from any other hooks in your schema.

Procedure

To create a global script:
  1. In the Schema Repository Explorer, expand the Global Scripts folder in your schema.
  2. Right-click a language folder, Basic or Perl, and click New Script.
  3. Type a name for the script.
  4. Double-click the script name to start the Script editor.
  5. Edit the script. Type your code in place of this line:
    REM TODO -- put your script code here
    

    When you create a global script, you create a placeholder for the hook and you must supply all of the code for your function or subroutine, including the Function or Sub declaration and parameter list. The names that you give to your global scripts must be unique within the schema.