|
|
Line 1: |
Line 1: |
| {{Template:APIClass|ALTAEvents Class|ALTAEvents}} | | {{Template:API}}{{Template:APIBreadcrumb|.[[ALTAEvents Class|ALTAEvents]]}} |
| {{Template:WeibullEvents.Message.Cmt}} | | {{Template:InProgress}} |
| | |
| == Syntax ==
| |
| <ul><li>Message(
| |
| {{APIName|sender}}
| |
| {{APIPrefix|As}}
| |
| {{APIName|[[ALTADataSet Class|ALTADataSet]],}}
| |
| {{APIName|sMsg}} | |
| {{APIPrefix|As String}}
| |
| {{APIName|,}}
| |
| {{APIName|AdditionalInfo}}
| |
| {{APIPrefix|As String}}
| |
| {{APIName|,}}
| |
| {{APIName|IsCritical}}
| |
| {{APIPrefix|As Boolean}}
| |
| {{APIName|)}}</li></ul>
| |
| | |
| Parameters
| |
| :''sender'': An ALTADataSet object | |
| | |
| :''sMsg'': The main display label.
| |
| | |
| :''AdditionalInfo'': The remaining label.
| |
| | |
| :''IsCritical'': Indicates whether the message displayed is critical.
| |
| | |
| == Usage Example ==
| |
| | |
| {{APIComment|'Overrides requested, create a new class and Inherit WeibullEvents, and set the dataset's events.}}
| |
| Private Class myEvents
| |
| Inherits WeibullEvents
| |
| Public Overrides Sub Message(sender As ALTADataSet, sMsg As String,
| |
| AdditionalInfo As String, IsCritical As Boolean)
| |
| MyBase.Message(sender, sMsg, AdditionalInfo, IsCritical)
| |
| {{APIComment|'<Add additional code here.>}}
| |
| End Sub
| |
| End Class
| |
|
| |
| {{APIComment|'Set the new Events class.}}
| |
| ADS.Events = New myEvents
| |
|
| |
| {{APIComment|'Send a message.}}
| |
| ADS.Events.Message(ADS, "message", "additional info", False)
| |