Difference between revisions of "ALTADataSet.Question"

From ReliaWiki
Jump to navigation Jump to search
Line 36: Line 36:
 
     ads.UseEvents = True
 
     ads.UseEvents = True
 
   
 
   
   {{APIComment|'Define a stress type with a use stress level of 300.}}
+
   {{APIComment|'Define a stress type with a use stress level of 100.}}
     {{APIPrefix|Call}} ads.AddStressDefinition({{APIString|"Stress1"}}, , 300)  
+
     {{APIPrefix|Call}} ads.AddStressDefinition({{APIString|"Stress1"}}, , 100)  
 
   
 
   
 
   {{APIComment|'Trigger the event by analyzing a data set that has a single data point.}}
 
   {{APIComment|'Trigger the event by analyzing a data set that has a single data point.}}
Line 66: Line 66:
 
     ads.UseEvents = True
 
     ads.UseEvents = True
 
   
 
   
   {{APIComment|'Define a stress type with a use stress level of 300.}}
+
   {{APIComment|'Define a stress type with a use stress level of 100.}}
     {{APIPrefix|Call}} ads.AddStressDefinition({{APIString|"Stress1"}}, , 300)  
+
     {{APIPrefix|Call}} ads.AddStressDefinition({{APIString|"Stress1"}}, , 100)  
 
   
 
   
 
   {{APIComment|'Trigger the event by analyzing a data set that has a single data point.}}
 
   {{APIComment|'Trigger the event by analyzing a data set that has a single data point.}}

Revision as of 16:54, 17 August 2016

APIWiki.png


Member of: SynthesisAPI.ALTADataSet

DRAFT GRAY.png

WORK IN PROGRESS
ALTADataSet.Question

DRAFT GRAY.png


Occurs when an answer to a question is required. Displays a message box with yes and no options.


Remarks: To hide the messages or write your own code for the event procedure, set the UseEvents property of the object to True. The event is raised by the class methods.

Syntax

_Question(msg, Buttons, ByRef Answer)

Parameters

sMsg

Required. String. The message to display.

Buttons

Required. The buttons to display when calling Visual Basic's MsgBox function. Can be any MsgBoxStyle constant (see Microsoft's reference documentation for this enum).

Answer

Required. Indicates which button was pressed on a message box returned by Visual Basic's MsgBox function. Can be any MsgBoxResult constant (see Microsoft's reference documentation for this enum).