What I need to do is create an instance of a class.... this sub:
calls a overridable overloads function named FrequencyStats. I have the code written all the way down to populating an array with the answers I need. The final step of the above mentioned sub is to call DisplayResults here is the code for that:VB Code:
Private Sub btnFrequency_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFrequency.Click Call DisplayResults(statCurrent.FrequencyStats(lstValues.ToDoubleArray)(0)) End Sub
How do I get my array that is populated with the answers to "communicate" with this sub and display my answers?VB Code:
Private Sub DisplayResults(ByVal f As Statistics.StatisticsGeneral.Frequency) With f lblMedian.Text = .Median.ToString lblMean.Text = .Mean.ToString lblRange.Text = .Range.ToString lblMinimum.Text = .Minimum.ToString lblmaximum.text = .Maximum.ToString End With End Sub
Thanks in advance.




Reply With Quote