Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking for DBNull in DataTable
Message
De
18/03/2004 13:46:52
 
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00887448
Message ID:
00887626
Vues:
10
Doesn't if row(col) = System.DBNull work in VB?

~~Bonnie

>I'm already using the code that you suggested, if you look at my trap code I am using:-
>
>if row(col).GetType().ToString = "System.DBNull"
>
>as suggested
>
>But this still doesn't seem to be the right solution, what about trapping for 'byte[]' where a system SQL datestamp is returned.
>
>Can I not test the object value with a system object directly to see if they compare?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform