Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Or condition
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00904568
Message ID:
00904884
Views:
22
Another suggestion is to use the INLIST method in the VFPToolKit for .NET.

>I am trying to compare a cell in a dataview to see if it contains the letter "A" or "B". In VFP you can do the following
>
>
>IF Table.Field == "A" OR Table.Field == "B"
>
>
>How can I do this in C#?
>
>I have tried the following but it won't work with strings.
>
>
>if (this.TestDataView.Table.Rows[0][0].ToString() == "A" | "B")
>
>
>Thanks for any help.
>
>John
Chris McCandless
Red Sky Software
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform