Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting a field in a datarow
Message
De
18/11/2006 13:16:24
 
 
À
17/11/2006 20:52:48
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:
01170990
Vues:
7
>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
>}
>
That would be the last think I would want to do. I am sure there is a way to do that by using built in .NET component.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform