Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Typed Datasets
Message
De
11/07/2007 11:47:24
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
 
À
11/07/2007 11:43:23
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Divers
Thread ID:
01239331
Message ID:
01239336
Vues:
8
>I am using a Typed dataset and write changes to my data through my business logic.
>
>I pass data via parameters into my update routines and write to the rows like this:
>
>MyDataTable o1 = new MyDataTable();
>MyRow o2 = o1.NewMyRow();
>o2.firstname = x
>o2.lastname = y
>
>
>This works great, but if the contents of X or Y are greater in length than the fields o2.firstname or o2.lastname, I will get an error. What is the best way of trapping or preventing this type of error?
>
>Thanks,
>
>Jerry

How do you define the length of a string in a Typed DataSet?
Very fitting: http://xkcd.com/386/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform