Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a row to a dataset
Message
De
06/08/2004 13:48:36
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Adding a row to a dataset
Divers
Thread ID:
00931376
Message ID:
00931376
Vues:
73
Can somebody tell me what is wrong with this code?

Dim rowNew As DataRow
rowNew = gModelTagsDS.Tables("header").NewRow()
rowNew("model") = Trim(txtModelNum.Text)
rowNew("modeldesc") = Trim(txtModelDesc.Text)
rowNew("partdesc") = desc
rowNew("quantity") = temp


I get an Object reference not set to an instance of an object error.

TIA!!

MAC
Very fitting: http://xkcd.com/386/
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform