Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting a field in a datarow
Message
De
17/11/2006 20:52:48
 
 
À
17/11/2006 16:57:54
Information générale
Forum:
ASP.NET
Catégorie:
Bases de données
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01170867
Message ID:
01170907
Vues:
7
Michel,

There are probably several ways to do this....one is to implement a try/catch block. Here's the way it would be in C#
string cResult = "";
try
{
    cResult = dr["firstname"].ToString();
}
catch (Exception)
{
   // your exception code
}
Hope that helps...
Kevin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform