Question on data in datagrid /listbox and looping in vb.net 2003?

Discussion in 'Microsoft VB .NET' started by Guest, Oct 25, 2004.

  1. Guest

    Guest Guest

    Greets All,

    Question on data in datagrid /listbox and looping?

    I’m trying to decide the best way to write this code.
    1 would like the user to make several selections from one listbox/combo box that would
    Populate another Listbox/datagrid. Then it would cycle through the selections made in the populated listbox/datagrid and do some calculations. The calculations made would have to add the first two numbers in the populated listbox/datagrid then divide by 25 then divide by 2. Then take that answer and add it to the next populated number in the listbox/datagrid then divide by 25 the divide by 2.

    Example: Variable List of Numbers in populated Listbox/combo Box
    10,20,30,….

    Example of Calculation formula:
    1) (((10+20) /25) /2) =.6
    2) (((.6+30)/25)/2) =.612
    3) Next number in populated listbox/datagrid
    Question:
    1) Should I use a listbox/datagrid to populate the data with?
    2) Is this possible? :)
    3) Any ideas how to write this array loop if possible?

    TIA
     
    Guest, Oct 25, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. magmo

    program shut down when looping datagrid..

    magmo, Jun 12, 2004, in forum: Microsoft VB .NET
    Replies:
    5
    Views:
    344
    Ken Tucker [MVP]
    Jun 12, 2004
  2. Guest
    Replies:
    0
    Views:
    205
    Guest
    Oct 25, 2004
  3. Dave
    Replies:
    5
    Views:
    555
  4. Bernie Yaeger

    drag/drop from listbox to listbox, but multiextended mode

    Bernie Yaeger, Jan 26, 2005, in forum: Microsoft VB .NET
    Replies:
    2
    Views:
    964
    Bernie Yaeger
    Jan 27, 2005
  5. Looping through a Datagrid

    , Feb 17, 2006, in forum: Microsoft VB .NET
    Replies:
    0
    Views:
    230
  6. Guest
    Replies:
    0
    Views:
    796
    Guest
    Oct 5, 2006
  7. Replies:
    3
    Views:
    940
    Cor Ligthert [MVP]
    Mar 20, 2007
  8. Amit
    Replies:
    1
    Views:
    411
    Guest
    Oct 25, 2007
Loading...