Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to specify right Column's type?
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Databases
Title:
How to specify right Column's type?
Miscellaneous
Thread ID:
00803602
Message ID:
00803602
Views:
41
Hi,

I create a DataTable to save some info. One of the field in that table I want to use for saving data from Byte's Array. Here's the line where I declare a column in my DataTable:

dt = New DataTable("TestTable")

.............

dt.Columns.Add("bField", System.Type.GetType
("System.Byte"))

.............

And here lines where I face problem:

Dim arByte() As Byte

.............

tr = dt.NewRow()
tr("bField") = arByte

where arByte has some 'items'. I get error message:

Couldn't store in bField Column. Expected type is Byte.

Is there any way to handle this situation?

TIA
Next
Reply
Map
View

Click here to load this message in the networking platform