Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01175341
Message ID:
01175343
Views:
9
>I am trying to use a multiple OR statement in c# but am getting
>..cannot be applied to operands of type bool and type string
>
>I am trying to (in VFP code)
>if Mynum2 = "C" or MyNum2 = "E" .....
>
>My c~ code is:
>if ( (MyNum2 == "C") || (MyNum2 == "E") )
>
>and MyNum2 is declared as string.
>
>Any help appreciated.
>
>Gerard
>

Try using single quotation mark (') instead of double (").
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View