WeibullDataSet.GetDistrParameters: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Template:API}}{{Template:APIBreadcrumb|.[[WeibullDataSet Class|WeibullDataSet]]}}
{{Template:API}}{{Template:APIBreadcrumb|.[[WeibullDataSet Class|WeibullDataSet]]}}
{{Template:InProgress}}




Line 9: Line 8:


== Syntax ==
== Syntax ==
  '''_GetDistrParameters'''(''sMsg'', ''GetOnlyOneParameter'', ''ParamCount'', {{APIPrefix|ByRef}} ''Params()'', {{APIPrefix|ByRef}} ''Cancel'')
  '''_GetDistrParameters'''(''sMsg'', ''InputInfo'', {{APIPrefix|ByRef}} ''Cancel'')


===Parameters===
===Parameters===
''sMsg''
''sMsg''
: Required. String. The message to display.
: Required. String. The message to display.
''GetOnlyOneParameter''
''InputInfo''
: Required. Boolean. Indicates whether to get a value for only one parameter. Default value = False.
: Required. An array of [[DistrParametersInput Class|DistrParametersInput()]] type objects that represent the model's parameters.
''ParamCount''
: Required. Integer. The number of parameters to update.
''Params()''
: Required. An array of [[ParamInputInfo Class|ParamInputInfo]] type objects that represent the model's parameters.  
''Cancel''
''Cancel''
: Required. Boolean. Indicates whether the input was cancelled. Default value = False.
: Required. Boolean. Indicates whether the input was cancelled. Default value = False.
Line 45: Line 40:
   
   
  {{APIComment|'----------------------------}}
  {{APIComment|'----------------------------}}
   {{APIPrefix|Private Sub}} wds_GetDistrParameters({{APIPrefix|ByVal}} sMsg {{APIPrefix|As String}}, {{APIPrefix|ByVal}} GetOnlyOneParameter {{APIPrefix|As Boolean}}, _
   {{APIPrefix|Private Sub}} wds_GetDistrParameters({{APIPrefix|ByVal}} sMsg {{APIPrefix|As String}}, _
                                     {{APIPrefix|ByVal}} ParamCount {{APIPrefix|As Long}}, Params() {{APIPrefix|As SynthesisAPI.ParamInputInfo}}, Cancel {{APIPrefix|As Boolean}})
                                     {{APIPrefix|ByVal}} InputInfo {{APIPrefix|As SynthesisAPI.DistrParametersInput}}, _
                                    Cancel {{APIPrefix|As Boolean}})
   {{APIComment|'<Add code here to handle the event.>}}
   {{APIComment|'<Add code here to handle the event.>}}
     MsgBox (sMsg)
     MsgBox (sMsg)
Line 70: Line 66:
   
   
  {{APIComment|'----------------------------}}
  {{APIComment|'----------------------------}}
   {{APIPrefix|Private Sub}} wds_GetDistrParameters(sMsg {{APIPrefix|As String}}, GetOnlyOneParameter {{APIPrefix|As Boolean}}, ParamCount {{APIPrefix|As Integer}}, _
   {{APIPrefix|Private Sub}} wds_GetDistrParameters(sMsg {{APIPrefix|As String}}, _
                                     {{APIPrefix|ByRef}} Params() {{APIPrefix|As ParamInputInfo}}, {{APIPrefix|ByRef}} Cancel {{APIPrefix|As Boolean}}) {{APIPrefix|Handles}} wds.GetDistrParameters
                                    InputInfo {{APIPrefix|As DistrParametersInput}}, _
  {{APIComment|'<Add code here to handle the event.>}}
                                     {{APIPrefix|ByRef}} Cancel {{APIPrefix|As Boolean}}) {{APIPrefix|Handles}} wds.GetDistrParameters
    {{APIComment|'<Add code here to handle the event.>}}
     MsgBox (sMsg)
     MsgBox (sMsg)
   {{APIPrefix|End Sub}}
   {{APIPrefix|End Sub}}

Latest revision as of 23:40, 6 September 2016

APIWiki.png


Member of: SynthesisAPI.WeibullDataSet


Occurs when there is insufficient data to fit a model. Displays a prompt for entering the parameters of the distribution.


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

_GetDistrParameters(sMsg, InputInfo, ByRef Cancel)

Parameters

sMsg

Required. String. The message to display.

InputInfo

Required. An array of DistrParametersInput() type objects that represent the model's parameters.

Cancel

Required. Boolean. Indicates whether the input was cancelled. Default value = False.


Example

The following example provides a simple demonstration on how to customize the event procedure.

VBA
 
 'Specify a variable to handle the event. 
  Private WithEvents wds As WeibullDataSet

 '----------------------------  
 Private Sub Main()
   'Associate the event variable with an object. 
    Set wds = New WeibullDataSet

   'Set the application to use your event procedure. 
    wds.UseEvents = True

   'To trigger the event, call the Calculate method without defining a data set.  
    wds.Calculate
    Msgbox("End")
 End Sub

 '---------------------------- 
 Private Sub wds_GetDistrParameters(ByVal sMsg As String, _
                                    ByVal InputInfo As SynthesisAPI.DistrParametersInput, _
                                    Cancel As Boolean)
   '<Add code here to handle the event.> 
    MsgBox (sMsg)
 End Sub
VB.NET

 'Specify a variable to handle the event. 
  Private WithEvents wds As WeibullDataSet

 '---------------------------- 
 Private Sub Main()
   'Associate the event variable with an object. 
    wds = New WeibullDataSet

   'Set the application to use your event procedure. 
    wds.UseEvents = True

   'To trigger the event, call the Calculate method without defining a data set.  
    wds.Calculate
    Msgbox("End")
 End Sub

 '---------------------------- 
 Private Sub wds_GetDistrParameters(sMsg As String, _
                                    InputInfo As DistrParametersInput, _
                                    ByRef Cancel As Boolean) Handles wds.GetDistrParameters
    '<Add code here to handle the event.> 
    MsgBox (sMsg)
 End Sub