WeibullDataSet.Message: Difference between revisions
Jump to navigation
Jump to search
Albert Szeto (talk | contribs) No edit summary |
Albert Szeto (talk | contribs) 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}} | {{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 | {{APIComment|Declare the WeibullEvents.}}<br> | ||
{{APIComment|Declare the WeibullDataSet | {{APIComment|Declare the WeibullDataSet.}}<br> | ||
{{APIComment|Note: The WeibullDataSet | {{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)