Tema: FAQ's de VB6
Ver Mensaje Individual
  #7 (permalink)  
Antiguo 06/08/2004, 14:02
Avatar de GeoAvila
GeoAvila
Colaborador
 
Fecha de Ingreso: diciembre-2003
Ubicación: Antigua Guatemala
Mensajes: 4.032
Antigüedad: 20 años, 3 meses
Puntos: 53
Como ingresar solo numeros en un campo de texto

pregunta:
¿Como ingresar solo numeros en un campo de texto?

respuesta:
Código:
	If ((KeyAscii < 48 Or KeyAscii > 57) And (KeyAscii < 44 Or KeyAscii > 44)) Then
		 If (KeyAscii <> 8) Then KeyAscii = 0
	 End If
__________________
* Antes de preguntar lee las FAQ, y por favor no hagas preguntas en las FAQ
Sitio http://www.geoavila.com twitter: @GeoAvila