' Visual Basic 2008 9.0 .NET Examples - Multidimensional Arrays - Arrays : Module Example3 Sub Main() Dim rowCount As Integer = 10 Dim columnCount As Integer = 10 ' Dim upperboundFirstDimension As Integer = rowCount - 1 Dim upperboundSecondDimension As Integer = columnCount - 1 ' Dim values(upperboundFirstDimension, upperboundSecondDimension) As Integer ' Dim baseValue As Integer = 101 ' Dim rowIndex, columnIndex As Integer For rowIndex = 0 To upperboundFirstDimension For columnIndex = 0 To upperboundSecondDimension values(rowIndex, columnIndex) = _ baseValue + (rowIndex * 10) + columnIndex Console.Write(values(rowIndex, columnIndex) & " ") Next Console.WriteLine() Next ' Console.ReadLine() End Sub End Module ' Visit www.studyvb.com for more examples. Copyright 2003-2008 De Wolf.