Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting a field in a datarow
Message
From
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:
01170955
Views:
8
This message has been marked as a message which has helped to the initial question of the thread.
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform