Talk:WeibullEvents.Question/Notes

From ReliaWiki
Revision as of 15:21, 6 May 2016 by Kate Racaza (talk | contribs) (Created page with '=DRAFT= {{Template:API}}{{Template:APIBreadcrumb}} Called when an answer to a question is required. Displays a prompt and returns the result. == Syntax == <ul><li>Question( {…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

DRAFT

APIWiki.png


Member of: SynthesisAPI


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

Syntax

  • Question( sender As WeibullDataSet, sMsg As String , Buttons As MsgBoxStyle, Answer As MsgBoxResult)

Parameters

sender: A WeibullDataSet 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

 'Overrides requested. Create a new class, inherit WeibullEvents, and set the dataset's events. 
 Private Class myEvents
     Inherits WeibullEvents
     Public Overrides Sub Question(sender As WeibullDataSet, sMsg As String, Buttons As MsgBoxStyle, 
     ByRef Answer As MsgBoxResult)
         MyBase.Question(sender, sMsg, Buttons, Answer)
             '<Add additional code here.> 
     End SubEnd Class
 
 'Set the new Events class. 
 WDS.Events = New myEvents
 
 'Ask a question. Result will be updated in Answer. 
 WDS.Events.Question(WDS, "Continue?", MsgBoxStyle., Answer)