Hi, I have this code, first I thougt it should be the same but i cant acces the info in the same way .. why is this???
Dim tp(,) As Integer = {{1, 3, 5, 9, 7}, {34, 3, 4, 5, 6}}
Dim tpo(1)() As Integer
tpo(0) = New Integer() {1, 3, 5, 9, 7}
tpo(1) = New Integer() {34, 3, 4, 5, 6}
For Each s As Integer In tp
Console.WriteLine(s & ",")
Next
For Each di() As Integer In tpo
For Each di2 As Integer In di
Console.WriteLine(di2 & ",")
Next
Next
The first one I use only one for each and the other one I use two .. why is this different? are noy they 2 dimensional arrays ???