About event variables and initial states
If an application event handler has variables associated with it, those variables can each be assigned an initial state. These values are assigned when the event handler starts to execute. Each initial state consists of these attributes:
- A name that identifies it in the system
- Any number of event variables with the initial values they are to have when the event handler starts to execute
For example, suppose you want to use these initial values with your event handlers variables:
Name of variable | Initial value | Comments |
---|---|---|
Increment | 250 | |
ItemTypes | AB | |
TimesRemaining | GC(MaxTimes) | In this case, the value is determined by the value of the MaxTimes global constant. |
Initial states are defined using the Event Variable Groups form. Once created, you can use a defined initial state with any other event handler by selecting it in the Initial State field on the Event Handlers form.