Hello everyone! How do I get/test the datatype of a certain column of a datatable collection? Please help me.. thank you
Deien369 Computer Programmer Accent Micro Technologies, Inc. "The more grain a stalk has, the lower it bows; the more knowlege we recieve, the more humble we should become."
Code: Dim myType As Type 'using the column name myType = myDataTable.Columns("Surname").DataType 'using the column zero-based index myType = myDataTable.Columns(1).DataType
Dim myType As Type 'using the column name myType = myDataTable.Columns("Surname").DataType 'using the column zero-based index myType = myDataTable.Columns(1).DataType
Hey, thanks a lot there buddy!
Forum Rules