WeibullDataSet.Message

From ReliaWiki
Revision as of 21:49, 16 September 2013 by Albert Szeto (talk | contribs)
Jump to navigation Jump to search

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.

ALTA Declaration

Public Overridable Sub Message( ByVal sender As ALTADataSet, 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. Substitute ALTAEvents for ALTA.
Declare the WeibullDataSet. Substitute ALTADataSet for ALTA.
Note: The WeibullDataSet/ALTADataSet 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)