Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting a field in a datarow
Message
From
18/11/2006 13:16:24
 
 
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:
01170990
Views:
6
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform