Announcement

Collapse
No announcement yet.

loading a datagrid into an array help please

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • loading a datagrid into an array help please

    My daughter is doing a lottery statistics project, i said some of the stats we could use a program to get...

    I have a datagrid loading a file showing all the draws..

    i cant get my head around how to load this data into a table.

    if i had this..

    Drawnumber1 = {Ball1="1", Ball2="2", Ball3="3", Ball4="4", Ball5="5", Ball6="6"};
    Drawnumber2 = {Ball1="1", Ball2="2", Ball3="3", Ball4="4", Ball5="5", Ball6="6"};
    Drawnumber3 = {Ball1="1", Ball2="2", Ball3="3", Ball4="4", Ball5="5", Ball6="6"};
    and so on....

    I cant do 1800 lines of code like this and would need to populate the list from the datagrid.

    i then wanted to be able to say..show me Drawnumber5, ball6 and grab it as a string?

    this way i could grab draw5 and ball 6 values and so on..

    and possibly help me on the above would be great?

    many thanks
    Carl
Working...
X