Programming with Reflection

image\rwnprg32.gif EnableOnEvent method


Syntax object.EnableOnEvent OnEventNumber, EnableOrDisable



Enables or disables specified event commands defined using either the OnEvent method or the Event Setup dialog box. For example, the following statement enables all currently defined events:

Session.EnableOnEvent rcAllEvents, rcEnable


OnEventNumber Argument type: Integer or Enumeration
Specifies the event number to enable or disable. Use rcAllEvents to enable or disable all defined events.

EnableOrDisable Argument type: Enumeration
Determines whether the specified events are enabled or disabled:

rcEnable Enables the specified event(s).

rcDisable Disables the specified event(s).


image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command