Hacer un sub funcion publica
Publicado por Fernando (29 intervenciones) el 15/11/2003 09:29:24
Como puedo hacer de estas dos subrutinas funciones publicas para insertar en un modulo y poder utiliar en todo la aplicacion.
\'salta a la sisguiente caja de TExto al llegar a un numero de caracteres
Private Sub Text1_Change()
if Len(Trim(Texi1.text))>Tex1.MaxLength then
Text2.Setfocus
End If
End Sub
\'cambia el color del texto del textbox poniendo en amarillo
If TextBox4 = \"\" Then
TextBox4.BackColor = &HFFFF&
Else
TextBox4.BackColor = &H80000005
End If
\'salta a la sisguiente caja de TExto al llegar a un numero de caracteres
Private Sub Text1_Change()
if Len(Trim(Texi1.text))>Tex1.MaxLength then
Text2.Setfocus
End If
End Sub
\'cambia el color del texto del textbox poniendo en amarillo
If TextBox4 = \"\" Then
TextBox4.BackColor = &HFFFF&
Else
TextBox4.BackColor = &H80000005
End If
Valora esta pregunta


0