Ver Mensaje Individual
  #3 (permalink)  
Antiguo 27/09/2009, 06:29
Zeta4
 
Fecha de Ingreso: septiembre-2009
Mensajes: 2
Antigüedad: 14 años, 7 meses
Puntos: 0
Respuesta: Ayuda con login y matrices

Aun no lo consigo y el problema está en el bucle. Hace falta uno, no?
Código:
For i = 1 To 5 Step 1
            If Intento = 3 Then
                MsgBox("Error.")
            Else
                If BoxUsuario.Text = Matriz1(i) Then
                    j = i
                    If Boxontrasena.Text = Matriz2(j) Then
                        MsgBox("Exito.")
                    Else
                        MsgBox("Contraseña incorrecta.")
                        Intento = Intento + 1
                    End If
                Else
                    MsgBox("Usuario incorrecto.")
                    Intento = Intento + 1
                End If
            End If
Next