Results 1 to 6 of 6

Thread: Creating an instance of a class...

  1. #1

    Thread Starter
    New Member skiman62's Avatar
    Join Date
    Nov 2003
    Posts
    12

    Creating an instance of a class...

    What I need to do is create an instance of a class.... this sub:
    VB Code:
    1. Private Sub btnFrequency_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnFrequency.Click
    2.         Call DisplayResults(statCurrent.FrequencyStats(lstValues.ToDoubleArray)(0))
    3.     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:
    1. Private Sub DisplayResults(ByVal f As Statistics.StatisticsGeneral.Frequency)
    2.         With f
    3.             lblMedian.Text = .Median.ToString
    4.             lblMean.Text = .Mean.ToString
    5.             lblRange.Text = .Range.ToString
    6.             lblMinimum.Text = .Minimum.ToString
    7.             lblmaximum.text = .Maximum.ToString
    8.         End With
    9.     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.

  2. #2

    Thread Starter
    New Member skiman62's Avatar
    Join Date
    Nov 2003
    Posts
    12
    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?

  3. #3

    Thread Starter
    New Member skiman62's Avatar
    Join Date
    Nov 2003
    Posts
    12

    Close this $%$#@ down!

    I figured it out
    "There are no stupid answers...only stupid questions. Or is it the other way around....hummm...."

  4. #4
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: Close this $%$#@ down!

    Originally posted by skiman62
    I figured it out
    well as it says in your profile, there are only stupid questions 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
    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!!

  5. #5

    Thread Starter
    New Member skiman62's Avatar
    Join Date
    Nov 2003
    Posts
    12

    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...."

  6. #6
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: No worries...

    Originally posted by skiman62
    I posted that last message with a grin..can't you tell??
    no I guess I'm dumb
    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
  •  



Click Here to Expand Forum to Full Width