Creating an instance of a class...
What I need to do is create an instance of a class.... this sub:
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
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 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
How do I get my array that is populated with the answers to "communicate" with this sub and display my answers?
Thanks in advance.
Re: Close this $%$#@ down!
Quote:
Originally posted by skiman62
I figured it out
well as it says in your profile, there are only stupid questions:D so it's your fault and there is no need to close this $%$#@ down :) besides, you posted in the wrong forum and they had to move it here ;)
chill out :) it's cool here