This variable controls whether the application will ignore ActiveX events between ACCEPT statements (the termination of one ACCEPT and the beginning of the next). Setting this variable to 1 (on, true, yes) enables this behavior. The default value is "0" (off, false, no).

Ordinarily, the thin client runtime suspends all ActiveX events when the application is not processing an ACCEPT statement. However, some ActiveX controls do not support the ability to suspend and resume events when an application is not processing an ACCEPT statement. As a result, in a thin client environment, an event procedure may be run unexpectedly during a CREATE, DISPLAY, MODIFY, INQUIRE, or any other operation that waits for results from the thin client. Setting TC_RESTRICT_AX_EVENTS provides some control over these ActiveX events.

To determine if a particular ActiveX control supports suspending and resuming events, check the control's documentation or ask the control vendor. Note that the control must implement the IOleControl::FreezeEvents() function.

See Using ActiveX Controls and COM Objects in A Guide to Interoperating with ACUCOBOL-GT and Installing ActiveX Files in the AcuConnect User's Guide for more information about ActiveX control handling.