Editing event handlers

There are two ways to access existing event handlers for editing. Here is one way:

  1. Access the Events dialog on the level containing an existing event handler.

  2. Double-click an existing event handler, or select it by clicking anywhere on the line and clicking Edit. The Event details dialog is displayed.

  3. Make the desired changes. Click Code to edit VBA source code in the Visual basic window. If the event handler calls a DLL, you can change the name here, but you must edit the DLL in your own programming environment.

 

Here is the other way. It cannot be used to edit application-level event handlers.

  1. Click the Form definitions, Set definitions , or Job descriptions object bar, depending on what level the event handler is on.

  2. Expand the folder containing the item to which the event handler belongs. If the event handler is defined on the field level, expand the folder containing the field definition, as well.

  3. Click the Events folder. Double-click an event handler to see it in the Event details dialog.

  4. Make the desired changes.

To edit a VBA function, click Code to edit VBA source code in the Visual Basic window.

If the event handler calls a DLL, you can change the name here but you must edit the DLL in your own programming environment.

Defining event handlers