Ordering application event handlers
When an application event handler is first defined and saved, the application automatically assigns a handler sequence number. When the event handler is first saved, the application checks to see if there are other handlers associated with the named application event. Depending on the results of that check, the application then assigns the number 1 to the handler (if there are no other handlers associated with the event) or the next available integer (if there are other handlers associated with the event).
In general, then, if an application event uses multiple event handlers, by default, the application uses the handler sequence numbers to determine the order in which the handlers execute.
However, It is possible to indirectly alter this default order. This can be done by taking one of these actions:
- Use the Keep With and Chronology fields on the Event Handlers form.
- Move your own adjacent event handlers up or down in the sequence by using the Event Handler Sequence form.
To alter the default order in which event handlers execute using the Keep With and Chronology fields on the Event Handlers form, use this procedure: