WeibullDataSet.Message: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{Template:APIClass|WeibullEvents Class|WeibullEvents}}
 
Display a message.
Display a message.


Line 10: Line 11:
{{APIPrefix|As}}
{{APIPrefix|As}}
{{APIName|[[WeibullDataSet Class|WeibullDataSet]],}}
{{APIName|[[WeibullDataSet Class|WeibullDataSet]],}}
{{APIPrefix|ByVal}}
{{APIName|sMsg}}
{{APIPrefix|As String}}
{{APIName|,}}
{{APIPrefix|ByVal}}
{{APIName|AdditionalInfo}}
{{APIPrefix|As String}}
{{APIName|,}}
{{APIPrefix|ByVal}}
{{APIName|IsCritical}}
{{APIPrefix|As Boolean}}
{{APIName|)}}
{{APIComment|Called by ‘sender’ when a message should be displayed.}}
==ALTA Declaration==
{{APIPrefix|Public Overridable Sub}}
{{APIName|Message(}}
{{APIPrefix|ByVal}}
{{APIName|sender}}
{{APIPrefix|As}}
{{APIName|[[ALTADataSet Class|ALTADataSet]],}}
{{APIPrefix|ByVal}}
{{APIPrefix|ByVal}}
{{APIName|sMsg}}
{{APIName|sMsg}}
Line 59: Line 38:
'''IsCritical'''
'''IsCritical'''
(This might be used to indicate which icon to display.)
(This might be used to indicate which icon to display.)


== Usage Example ==
== Usage Example ==


{{APIComment|Declare the WeibullEvents.  Substitute [[ALTAEvents Class|ALTAEvents]] for ALTA.}}<br>
{{APIComment|Declare the WeibullEvents.}}<br>
{{APIComment|Declare the WeibullDataSet. Substitute [[ALTADataSet Class|ALTADataSet]] for ALTA.}}<br>
{{APIComment|Declare the WeibullDataSet.}}<br>
{{APIComment|Note: The WeibullDataSet/ALTADataSet constructor already creates a new WeibullEvents, which could be used in place of WEvents in the example below.}}
{{APIComment|Note: The WeibullDataSet constructor already creates a new WeibullEvents, which could be used in place of WEvents in the example below.}}
         Dim WEvents as New WeibullEvents
         Dim WEvents as New WeibullEvents
         Dim WDS as New WeibullDataSet
         Dim WDS as New WeibullDataSet

Revision as of 22:08, 16 September 2013



Display a message.

Weibull Declaration

Public Overridable Sub Message( ByVal sender As WeibullDataSet, ByVal sMsg As String , ByVal AdditionalInfo As String , ByVal IsCritical As Boolean )

Called by ‘sender’ when a message should be displayed.

Parameters

sender An WeibullDataSet object

sMsg The main display label.

AdditionalInfo The remaining label.

IsCritical (This might be used to indicate which icon to display.)

Usage Example

Declare the WeibullEvents.
Declare the WeibullDataSet.
Note: The WeibullDataSet constructor already creates a new WeibullEvents, which could be used in place of WEvents in the example below.

       Dim WEvents as New WeibullEvents
       Dim WDS as New WeibullDataSet

Show a prompt with the respective strings.

       WEvents.Message(WDS, "Message1", "AdditionalInfo1", False)