For the life of me I cannot figure out this error...
Else without If
I'm writing a simple Tic Tac Toe Program where users take turn putting their x's or o's on the board...I'm still in the stage of deciding which letter gets placed. here is my code...I have the same thing for all Commands, except that they change a differant commands caption it corrosponds...command 1 is the upper left box 2 is upper middle and so on right to left all the way down...
VB Code:
Public Sub Form_Load() Dim whoturn As Boolean whoturn = False End Sub Public Sub Command1_Click() If whoturn = False Then whoturn = True Else: whoturn = False If whoturn = True Then Command1.Caption = "X" Else Command1.Caption = "O" End Sub
Again i get the above error, and Idk what i'm doing wrong...any suggestions??
