Ver Mensaje Individual
  #7 (permalink)  
Antiguo 13/11/2009, 21:52
Avatar de pkj
pkj
 
Fecha de Ingreso: julio-2006
Ubicación: Órbita sincrónica
Mensajes: 899
Antigüedad: 17 años, 9 meses
Puntos: 29
Respuesta: Programa separador

Si no lo consigues prueba esta sub en el boton

Código :
Ver original
  1. Private Sub sep_Click()
  2. Dim contador As Integer
  3. Dim f As Integer
  4. ReDim matriz(5)
  5. For f = 1 To Len(Texto.Text)
  6.   If Mid$(Texto.Text, f, 1) <> separador.Text Then
  7.     matriz(contador) = matriz(contador) & Mid$(Texto.Text, f, 1)
  8.   Else
  9.     contador = contador + 1
  10.   End If
  11. Next f
  12. nombre.Caption = matriz(0)
  13. nombre2.Caption = matriz(1)
  14. paterno.Caption = matriz(2)
  15. materno.Caption = matriz(3)
  16. correo.Caption = matriz(4)
  17. tel.Caption = matriz(5)
  18. End Sub
__________________
No hay preguntas tontas, solo gente estup..., ¡No!, ¿como era? No hay gente que pregunte a tontos... ¡Nooo!... ¡Vaya cabeza!

Última edición por pkj; 13/11/2009 a las 21:58