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