Hi all,
I am brand new to C# and I am trying to edit a program I have been given.
Basically I have a string and I want to see if it equals another string. I have this but it gives me the error: Error 1 Cannot implicitly convert type 'string' to 'bool'.
Could someone give me a hand? I cannot seem to find anything like this do you do this another way in C# as I am use to vb.net.Code:String SerialIn = System.Text.Encoding.ASCII.GetString(readBuffer,0,count); if (SerialIn == 'OK') { }
Cheers,
Sam




Reply With Quote