Hello, I have the folowing code:
This code fills a table with 3 columns with values from a array-list called "myarraylist".
It fills the first row with the first 3 values in the array-list.
But after the first loop instead of filling the second row with the 3th, 4th en 5th value of the arraylist, it fills the second row again with the 2nd and 3th row and with a new 4th value.
How can i make it add again and again upcoming values from the arraylist, and not repeating earlier values from the arraylist?
I know it is in the line: myarraylist(n + 0)
Do I have to make a for-next in the for-next??
Please help. Appreciated!!
VB.NET:
Dim n As Integer = 0
For n = 0 To intarray - 1
table2.Cell((1 + n), 1).Range.Text = myarraylist(n + 0)
table2.Cell((1 + n), 2).Range.Text = myarraylist(n + 1)
table2.Cell((1 + n), 3).Range.Text = myarraylist(n + 2)
Next
This code fills a table with 3 columns with values from a array-list called "myarraylist".
It fills the first row with the first 3 values in the array-list.
But after the first loop instead of filling the second row with the 3th, 4th en 5th value of the arraylist, it fills the second row again with the 2nd and 3th row and with a new 4th value.
How can i make it add again and again upcoming values from the arraylist, and not repeating earlier values from the arraylist?
I know it is in the line: myarraylist(n + 0)
Do I have to make a for-next in the for-next??
Please help. Appreciated!!