General information
Category:
Coding, syntax and commands
Title:
How to use --> OR in c#
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only