I just started learning programming about 2 months ago. I'm trying to do a Tic-Tac-Toe game using labels but I have a little difficulty. How do I get the computer to check if 3 labels are of the same value.
I've tried this:
If lblLeft.Text And lblCenter.Text And lblRight.Text = "X" Then MessageBox.Show("You Win", "Well Done") End If
But when I tried debugging, Visual Basic tells me that "Conversion from string "O" to type 'Long' is not valid". What should I do?