What I need, is one three-dimensional array that holds:
1. Column name
2. MaxLength
3. DataType
My code is close, I just can't remember the syntax for adding data to the array.
Please help,
Sheryl
'get the column information
Dim c As Integer = 0
Dim x As Integer = 0
Dim y As Integer = 0
Dim iCount As Integer = columnCount - 1
Dim aFields(iCount, iCount, iCount) As String
For Each dc As DataColumn In objDS.Tables(strTableName).Columns
aFields(c, x, y) = dc.ColumnName
aFields(c, x, y) = dc.MaxLength.ToString
aFields(c, x, y) = dc.DataType.ToString
frmDesigner.ListBox1.Items.Add(aFields(c, x, y))
c = c + 1
x = x + 1
y = y + 1
Next