ALTADataSet.ShowCalculationProgress: Difference between revisions

From ReliaWiki
Jump to navigation Jump to search
No edit summary
Line 15: Line 15:
== Usage Example ==
== Usage Example ==


{{APIComment|Declare the ALTAEvents.}}<br>
{{APIComment|'Overrides requested. Create a new class, inherit WeibullEvents,}}
{{APIComment|Declare the ALTADataSet.}}<br>
{{APIComment|'and set the dataset's Events.}}
{{APIComment|Note: The ALTADataSet constructor already creates a new ALTAEvents, which could be used in place of AEvents in the example below.}}<br>
  Private Class myEvents
        Dim AEvents as New ALTAEvents
      Inherits WeibullEvents
        Dim ADS as New ALTADataSet
      Public Overrides Sub ShowCalculationProgress(sender As ALTADataSet)
 
          MyBase.ShowCalculationProgress(sender)
{{APIComment|Show the current Calculation Progress.}}
          ("Additional overridden code here.")
        AEvents.ShowCalculationProgress(ADS)
      End Sub
  End Class
 
{{APIComment|'Set the new Events class.}}
  ADS.Events = New myEvents
 
{{APIComment|'Show calculation progress.}}
  ADS.Events.ShowCalculationProgress(ADS)

Revision as of 21:59, 5 May 2014


Called when calculation progress should be shown. Shows the current calculation progress if the calculation process is running.

Syntax

Parameters

sender: An ALTADataSet object.

Usage Example

 'Overrides requested. Create a new class, inherit WeibullEvents, 
 'and set the dataset's Events. 
 Private Class myEvents
     Inherits WeibullEvents
     Public Overrides Sub ShowCalculationProgress(sender As ALTADataSet)
         MyBase.ShowCalculationProgress(sender)
         ("Additional overridden code here.")
     End Sub
 End Class
 
 'Set the new Events class. 
 ADS.Events = New myEvents
 
 'Show calculation progress. 
 ADS.Events.ShowCalculationProgress(ADS)