Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting a field in a datarow
Message
From
17/11/2006 20:52:48
 
 
To
17/11/2006 16:57:54
General information
Forum:
ASP.NET
Category:
Databases
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01170867
Message ID:
01170907
Views:
6
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform