Suma dentro de text
Publicado por Gustavo (181 intervenciones) el 26/01/2005 03:16:17
hola quiero hacer un text para sumar pero solo uno y tengo la lo sig para hacerlo pero no me funciona por q
Private Sub Text1_KeyPress(KeyAscii As Integer)
Dim comodin As Integer
If KeyAscii = 43 Then 'tecla +
comodin = Int(Text1) + comodin
Text1 = ""
KeyAscii = 0
ElseIf KeyAscii = 13 Then 'tecla intro
Text1 = comodin
End If
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
Dim comodin As Integer
If KeyAscii = 43 Then 'tecla +
comodin = Int(Text1) + comodin
Text1 = ""
KeyAscii = 0
ElseIf KeyAscii = 13 Then 'tecla intro
Text1 = comodin
End If
End Sub
Valora esta pregunta


0