|
-
Nov 3rd, 2003, 03:06 AM
#1
Thread Starter
New Member
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.
-
Nov 3rd, 2003, 11:11 AM
#2
Thread Starter
New Member
i can also have the "answers" stored in seperate variables if that makes the process any eaiser. Oh, what data type should they be in..or does it matter?
-
Nov 3rd, 2003, 01:10 PM
#3
Thread Starter
New Member
"There are no stupid answers...only stupid questions. Or is it the other way around....hummm...."
-
Nov 3rd, 2003, 01:23 PM
#4
Re: Close this $%$#@ down!
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Nov 3rd, 2003, 01:42 PM
#5
Thread Starter
New Member
No worries...
I posted that last message with a grin..can't you tell??
"There are no stupid answers...only stupid questions. Or is it the other way around....hummm...."
-
Nov 3rd, 2003, 01:50 PM
#6
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|