Procedures

Procedures are functions and subroutines that you want to be accessible to other event scripts. The scope of the procedure (meaning where you can use it), depends on the type of procedure you are scripting.

Below is a list of tasks often performed and items often placed in the Procedures scripts:

Types of Procedures

There are four types of procedures: Procedures for All Events, Procedures for Document Events, Procedures for Data Source Events, and Procedures for Transform Events.

Defining "Global" Variables

Procedures can be used to declare variables that can be accessed by multiple scripts in your document. Variables that are global to an entire document (and therefore shareable by scripts for different objects within a document) can be defined in the Procedures for All Events script.

Related Topics