Results 1 to 3 of 3

Thread: Need Some Help

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2007
    Posts
    2

    Question Need Some Help

    I am a second year student taking a home course and having problems with visual basic, I have only 2 chapters left to graduate and I am falling behind.
    I have a program with 2 numeric up and down buttons where users can input temperature and wind chill velocity in increments of five, and a calculate wind chill button, I need a function procedure to find the result and then return the result to the calling event procedure, any help would be greatly appreciated, here is what I have, I declared the temperatures and wind velocity, display should be in a message box.

    Dim gintWindChillValues(,) As Integer = { _
    {-26, -46, -58, -67, -74, -79}, _
    {-21, -40, -51, -60, -66, -71}, _
    {-15, -34, -45, -53, -59, -64}, _
    {-10, -27, -38, -46, -51, -56}, _
    {-5, -22, -31, -39, -44, -49}, _
    {0, -15, -25, -31, -36, -41}, _
    {7, -9, -18, -24, -29, -33}, _
    {12, -3, -11, -17, -22, -25}}

  2. #2
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    Re: Need Some Help

    I think you need to explain this a bit better, what exactly are you trying to accomplish? What's the actual math behind this thing(not knowing anything about wind at all)

    If you just need to know how to make a function that returns an Integer value that's rather easy;

    Code:
    Private Function calcValue(ByVal val1 As Integer, ByVal val2 As Integer) As Integer)
        Return val1*val2
    End Function
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2007
    Posts
    2

    Re: Need Some Help

    The program accepts user input of a temperature between - 20 and 15 degrees farenheit and a wind velocity between 5 and 30 mph in multiples of 5, based on the input the program should look up the wind chill factor in a two-dimensional array and display it.I need a function procedure to find the result and then return the result to the calling event procedure and display it in a message box.

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