Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to specify right Column's type?
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Titre:
How to specify right Column's type?
Divers
Thread ID:
00803602
Message ID:
00803602
Vues:
42
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform