help with 2 Dim array?

outaleb

New member
Joined
Sep 21, 2007
Messages
3
Programming Experience
1-3
hi experts;
I have 2-Dim Array vData As Object; vData(i,j) , and i want to show the values in a Label or text,
so that i get a form of table the i´s and j´s shown like a sheet, because the first i is the mass and the first j is his intensitie.
i hope i was clear:
thx a lot
 
Last edited:
In your case, where you want to use two dimensional array i would create a class for the data. (mass, intensity) and then i would add objects of it to an ArrayList.
 
Last edited:
2dim array

so i have already this 2-Dim Array, and what i want is just to give his values in a form like table or sheet, in Lablel
like ' Label1.Text = vDate(i,j)'
so that appeara like : i j
i+1 j+1
i+2 j+2
.. ..
thx a lot
 
Not the best way to do it. Should use a collection of class objects and probably even a text box but here goes:

For row = 0 to numItems
For column = 0 to numValues
Label1.Text += vDate(row, column) & " "​
Next column
Label1.Text += ControlChars.Lf
Next row
 
Back
Top