Results 1 to 2 of 2

Thread: help

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Posts
    8

    help

    I'm trying to write a program that adds numbers to a list box then has buttons that will show the total mean median variance..but I am having trouble for some reason..it' doesn't seem that it should be too hard but I can't get it to work...and help with the code would be greatly appreciated..Thanks..corey

  2. #2
    Hyperactive Member
    Join Date
    Aug 2001
    Location
    The Dark Side of the Moon
    Posts
    448
    Store all the values in the listbox into an array. Then loop through the array and do what you need to do.


    Code:
    for i = 1 to whatever
         total = total + array(i)
         count = count + 1
    next
    
    average = total / count

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