Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
WithEvents Property
Collapse the table of content
Expand the table of content

WithEvents Property

Sets whether you want C/SIDE to receive events from a component that it controls. A component can be an automation server or a custom control (OCX).

Global variables of the type Automation Data Type.

When you declare a global variable of the type Automation, you can specify whether you want to receive events. When you set the WithEvents property for the variable to Yes, this automatically generates AL triggers for the events that the component provides. An AL trigger name consists of the name of the automation variable followed by "::<Event name>."

Community Additions

© 2015 Microsoft