R
RichardF
I a m trying to loop through the columns in my DataTable and do
different things based on the data type of each column.
For testing purposes I tried the following code...
Dim MyColumn As DataColumn
MyColumn = MyDataSet.Tables("MyTable").Columns"MyColumn")
Dim MyType As System.Type
MyType = MyColumn.DataType
Debug.WriteLine(MyType.ToString)
Debug.WriteLine(Convert.GetTypeCode(MyType) = TypeCode.Boolean)
In the output window I get the following...
System.Boolean
False
What is happening? How can I checl to see if my column is a boolean
column.
Thanks for any help!
RichardF
different things based on the data type of each column.
For testing purposes I tried the following code...
Dim MyColumn As DataColumn
MyColumn = MyDataSet.Tables("MyTable").Columns"MyColumn")
Dim MyType As System.Type
MyType = MyColumn.DataType
Debug.WriteLine(MyType.ToString)
Debug.WriteLine(Convert.GetTypeCode(MyType) = TypeCode.Boolean)
In the output window I get the following...
System.Boolean
False
What is happening? How can I checl to see if my column is a boolean
column.
Thanks for any help!
RichardF