cuestion de botones y textos
Publicado por dani (1 intervención) el 19/08/2004 20:07:39
tengo una duda, tengo en un ventana dos textbox y dos botones, al pisar el boton 1 se le suma 1 a la text 1, e igual con el boton y text 2, ahora tengo que hacer que cuando la text2 llegue a 15 y se siga pisando en boton 2 ahora se le sume al text 1, ya tengo el principio pero no se como hacer para que cuando llegue a 15 se le sume a la text 1 si me lo dicen please... la primera parte la tengo asi y corre perfecto.
Private Sub Command1_Click()
Text1 = CDbl(Text1) + 1
End Sub
Private Sub Form_Load()
Text1 = \"0\"
Text2 = \"0\"
End Sub
Private Sub Command2_Click()
Text2 = CDbl(Text2) + 1
End Sub
Private Sub Command1_Click()
Text1 = CDbl(Text1) + 1
End Sub
Private Sub Form_Load()
Text1 = \"0\"
Text2 = \"0\"
End Sub
Private Sub Command2_Click()
Text2 = CDbl(Text2) + 1
End Sub
Valora esta pregunta


0