Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting a field in a datarow
Message
 
 
To
18/11/2006 09:11:04
John Baird
Coatesville, Pennsylvania, United States
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:
01170958
Views:
11
Thats better.

>Or:
>
>if (dataRow.Table.Columns.Contains("FirstName"))
>
>
>>>How can I detect if a specific field is present in a datarow?
>>>
>>>I have tried:
>>>
>>>
>>>            If Not loRow("FirstName") Is Nothing Then
>>>            End If
>>>
>>>
>>>But, this doesn't work.
>>
>>
>>if Not loRow.Table.Columns.IndexOf("FirstName") = -1 Then
Michael McLain
Previous
Reply
Map
View

Click here to load this message in the networking platform