Ver Mensaje Individual
  #2 (permalink)  
Antiguo 26/05/2010, 10:47
Avatar de lokoman
lokoman
 
Fecha de Ingreso: septiembre-2009
Mensajes: 502
Antigüedad: 14 años, 7 meses
Puntos: 47
Respuesta: decir si un carácter es vocal, consonante, número o signo de puntuación

Hola otra vez!

Completa el codigo con los signos que falten:

Código vb:
Ver original
  1. Private Sub Command4_Click()
  2.     Dim Caracter
  3.    
  4.     Caracter = InputBox("Entre caracter: ")
  5.    
  6.     If IsNumeric(Caracter) = True Then
  7.         MsgBox "Es un numero"
  8.         Exit Sub
  9.     End If
  10.    
  11.     If LCase(Caracter) = LCase("A") Then
  12.         MsgBox "Es una vocal"
  13.     Else
  14.         If LCase(Caracter) = LCase("E") Then
  15.             MsgBox "Es una vocal"
  16.         Else
  17.             If LCase(Caracter) = LCase("I") Then
  18.                 MsgBox "Es una vocal"
  19.             Else
  20.                 If LCase(Caracter) = LCase("O") Then
  21.                     MsgBox "Es una vocal"
  22.                 Else
  23.                     If Caracter = LCase("U") Then
  24.                         MsgBox "Es una vocal"
  25.                     End If
  26.                 End If
  27.             End If
  28.         End If
  29.     End If
  30.    
  31.     If Caracter = "." Then
  32.         MsgBox "Es un signo de puntuacion"
  33.     Else
  34.         If Caracter = ":" Then
  35.             MsgBox "Es un signo de puntuacion"
  36.         Else
  37.             If Caracter = "," Then
  38.                 MsgBox "Es un signo de puntuacion"
  39.             End If
  40.         End If
  41.     End If
  42. End Sub