Visual Basic - FORMATOI

Life is soft - evento anual de software empresarial
 
Vista:

FORMATOI

Publicado por JAVIER (1 intervención) el 03/03/2004 20:29:14
ALGUIEN SABE COMO HACER UNA VALIDACION EN CUADRO DE TEXTO EN VISUAL BASIC QUE SOLO PUEDA INGRESAR CARACTERES EN MAYUSCULAS ASI COMO EN VISUAL FOX PRO ERA LA PROPIEDAD FORMAT Y SE LE COLOCABA EL SIMBOLO " ! "
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:FORMATOI

Publicado por Miguel Angel (5 intervenciones) el 03/03/2004 20:37:11
haga una funcion que te convierta las letras minusculas en mayusculas en la propiedad keypress del textbox
Private Sub Text1_KeyPress(KeyAscii As Integer)
if (keyascii >96 and keyascii <123) or keyascii = 164 then
keyascii = convertir(keyascii)
Endif
End Sub

private function convertir(byval a as integer) as interger
dim b as integer
if a = 164 then
b = 165 'convierto la ñ a Ñ
else
b = a - 32
endif
convertir=b
end sub
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar