
31/01/2009, 11:01
|
Colaborador | | Fecha de Ingreso: enero-2008 Ubicación: Unas veces aquí, otras veces allí
Mensajes: 1.482
Antigüedad: 17 años, 3 meses Puntos: 37 | |
Respuesta: Como poner dos text cuando utilizo matris Cita:
Iniciado por fedefrankk Hola, mi consulta es la siguiente, tengo un form con 3 text asi:
text1(0)
text1(1)
text1(2)
cuando quiero hacer algo con el text1(0), preciono dos veces sobre e el mismo y aparece esto : Código PHP: Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer)
pero cuando quiero hacer algo sobre text1(2), me aparece lo mismo Código PHP: Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer)
yo modifico en :Private Sub Text1(1)_KeyPress(Index As Integer, KeyAscii As Integer)
y me sale un error de:
Se esperaba indentificador
Saludos a todos
gracias Hola, el parámetro Index del evento te dá el índice del control:
Código:
Private Sub Text1_KeyPress(Index As Integer, KeyAscii As Integer)
Select Case Index
Case 0
MsgBox "Text0"
Case 1
MsgBox "Text1"
Case 2
MsgBox "Text2"
End Select
End Sub
|