Professional Documents
Culture Documents
Text = "" Text1(5).Text = "" End Sub Private Sub comprobar() If (Text1(0).Text = "x" And Text1(1).Text = "x") Then MsgBox ("Gano Jugador con la ficha x") gano = True
Text1(0) Text1(3)
Text1(1) Text1(4)
Text1(2) Text1(5)
limpiar Else If (Text1(0).Text = "o" And Text1(1).Text = "o") Then MsgBox ("Gano Jugador con la ficha o") gano = True limpiar End If End If If (Text1(1).Text = "x" And Text1(2).Text = "x") Then MsgBox ("Gano Jugador con la ficha x") gano = True limpiar Else If (Text1(1).Text = "o" And Text1(2).Text = "o") Then MsgBox ("Gano Jugador con la ficha o") gano = True limpiar End If End If If (Text1(3).Text = "x" And Text1(4).Text = "x") Then MsgBox ("Gano Jugador con la ficha x") gano = True limpiar Else If (Text1(3).Text = "o" And Text1(4).Text = "o") Then MsgBox ("Gano Jugador con la ficha o") gano = True limpiar End If End If If (Text1(4).Text = "x" And Text1(5).Text = "x") Then MsgBox ("Gano Jugador con la ficha x") gano = True limpiar Else If (Text1(4).Text = "o" And Text1(5).Text = "o") Then MsgBox ("Gano Jugador con la ficha o") gano = True limpiar End If End If End Sub Private Sub Form_Load() gano = False End Sub Private Sub Text1_Change(Index As Integer) 'se activa cada vez q cambia la caja de texto(cambia el contenido) comprobar If (Not gano) Then If (Text1(0).Text <> "" And Text1(1).Text <> "" And Text1(2).Text <> "" And Text1(3).Text <> "" And Text1(4).Text <> "" And Text1(5).Text <> "") Then MsgBox ("No hubo ganador") limpiar End If End If End Sub