Event handling in Xs2Ado is available for the AdoConnection and AdoRecordset classes.
There are two ways to enable event handling:
•Globally, by calling the AdoEnableConnectionEvents() or AdoEnableRecordSetEvents() functions to set the classname of the class that will implement the event handler.
If you use this method all classes created after the event handler has been set will automatically have event handling enabled.
Please note: Every Connection or Recordset class will have its OWN copy of the event handler class
•Locally, by calling the EnableEvents() methods of a Connection or RecordSet object and passing in a copy of the event handler class that you want to use.
The following classes and functions are used in the context of event handling
|AdoConnectionEventClass||Returns the class name of the global Connection Event Handler|
|AdoConnectionEvents Class||Connection Events abstract class|
|AdoDisableConnectionEvents||Disable global Connection Events|
|AdoDisableRecordSetEvents||Disable global Recordset Events|
|AdoEnableConnectionEvents||Enable Events for all new Connections|
|AdoEnableRecordSetEvents||Enable Events for all new RecordSets|
|AdoEventHandler Class||Abstract class for event handling|
|AdoRecordSetEventClass||Returns the class name of the global RecordSet Event Handler|
|AdoRecordSetEvents Class||RecordSet Events abstract class|