Talk:ALTAEvents Class/Notes

=DRAFT=

Contains all the event handlers that can be called by ALTADataSet. To use events, you must inherit the class, override its methods and assign its instance to the Events property of an ALTADataSet. ALTAEvents inheritance is not available in VB6/VBA.

Methods

 * Message( ALTADataSet, String, String, Boolean )
 * Question( ALTADataSet, String, MsgBoxStyle, MsgBoxResult )
 * UpdateCalculationProgress( ALTADataSet, String, String, Double, Boolean, Long, Boolean )
 * ShowCalculationProgress( ALTADataSet )
 * HideCalculationProgress( ALTADataSet )

Usage Example
This example demonstrates how to produce a dialog box when an answer to a question is required. Dim ADS As New ALTADataSet Private Class myEvents Inherits ALTAEvents Public Overrides Sub Question(sender As ALTADataSet, sMsg As String, Buttons As MsgBoxStyle, ByRef Answer As MsgBoxResult) MyBase.Question(sender, sMsg, Buttons, Answer) End SubEnd Class ADS.Events = New myEvents Dim Buttons As MsgBoxStyle = MsgBoxStyle.YesNoCancel Dim Answer As MsgBoxResult ADS.Events.Question(ADS, "Continue?", Buttons, Answer)