ALTADataSet.Message: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
(Created page with '{{Template:APIClass|ALTAEvents Class|ALTAEvents}} Display a message. ==ALTA Declaration== {{APIPrefix|Public Overridable Sub}} {{APIName|Message(}} {{APIPrefix|ByVal}} {{APINam…')
 
No edit summary
Line 37: Line 37:
'''IsCritical'''
'''IsCritical'''
(This might be used to indicate which icon to display.)
(This might be used to indicate which icon to display.)
== Usage Example ==


{{APIComment|Declare the ALTAEvents.}}<br>
{{APIComment|Declare the ALTAEvents.}}<br>

Revision as of 22:05, 16 September 2013



Display a message.

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 ALTADataSet 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 ALTAEvents.
Declare the ALTADataSet.
Note: The ALTADataSet constructor already creates a new ALTAEvents, which could be used in place of AEvents in the example below.

       Dim AEvents as New ALTAEvents
       Dim ADS as New ALTADataSet

Show a prompt with the respective strings.

       AEvents.Message(ADS, "Message1", "AdditionalInfo1", False)