Talk:ALTAEvents.Question/Notes

=DRAFT=

Called when an answer to a question is required. Displays a prompt and returns the result.

Syntax
Question( sender

ALTADataSet, sMsg

, Buttons

MsgBoxStyle , Answer

MsgBoxResult ) 

Parameters
 * sender: An ALTADataSet object.


 * sMsg: The main display label.


 * Buttons: The MsgBoxStyle that determines the number and display of the buttons. See MsgBoxStyle for additional details.


 * Answer: The MsgBoxResult that is returned by the prompt. See MsgBoxResult for additional details.

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)