Ver Mensaje Individual
  #10 (permalink)  
Antiguo 05/11/2010, 02:49
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: Concatenar text multilinea

No sé a que te refieres, ya que sobre el tema de concatenar te puse un ejemplo.

Por si te sirve te paso tu código según creo que quieres que funcione a ver si te ayuda.

Código vb:
Ver original
  1. Dim Sistema as string
  2. Dim PC as string
  3. Private Sub Form_Load()
  4. sistema="sistema no definido"
  5. PC="equipo no definido"
  6. End Sub
  7.  
  8. Private Sub cmdcerrar_Click()
  9. End
  10. End Sub
  11. Private Sub cmdnuevo_Click()
  12. Opt486.Enabled = True
  13. optpentium.Enabled = True
  14. optpentiumpro.Enabled = True
  15. optwindows95.Enabled = True
  16. optwindows98.Enabled = True
  17. optwindowsme.Enabled = True
  18. optwindowsnt.Enabled = True
  19. sistema="sistema no definido"
  20. PC="equipo no definido"
  21. text1.Text = ""
  22. Opt486.Value = 0
  23. optpentium.Value = 0
  24. optpentiumpro.Value = 0
  25. optwindows95.Value = 0
  26. optwindows98.Value = 0
  27. optwindowsme.Value = 0
  28. optwindowsnt.Value = 0
  29. End Sub
  30. Private Sub Opt486_Click()
  31. PC= "Procesador 486"
  32. Opt486.Enabled = True
  33. optpentium.Enabled = False
  34. optpentiumpro.Enabled = False
  35. Text1.Text= "Tiene usted un " & PC & " con el " & sistema
  36.  
  37. End Sub
  38. Private Sub optpentium_Click()
  39. PC= = "Procesador Pentium"
  40. Opt486.Enabled = False
  41. optpentium.Enabled = True
  42. optpentiumpro.Enabled = False
  43. Text1.Text= "Tiene usted un " & PC & " con el " & sistema
  44.  
  45. End Sub
  46. Private Sub optpentiumpro_Click()
  47. PC= = "Procesador Pentium Pro"
  48. Opt486.Enabled = False
  49. optpentium.Enabled = False
  50. optpentiumpro.Enabled = True
  51. Text1.Text= "Tiene usted un " & PC & " con el " & sistema
  52.  
  53. End Sub
  54. Private Sub optwindows95_Click()
  55. Sistema = "Sistema Operativo Windows 95"
  56. Text1.Text= "Tiene usted un " & PC & " con el " & sistema
  57. End Sub
  58. Private Sub optwindows98_Click()
  59. Sistema = "Sistema Operativa Windows 98"
  60. Text1.Text= "Tiene usted un " & PC & " con el " & sistema
  61. End Sub
  62. Private Sub optwindowsme_Click()
  63. Sistema = "Sistema Operativo Windows ME"
  64. Text1.Text= "Tiene usted un " & PC & " con el " & sistema
  65. End Sub
  66. Private Sub optwindowsnt_Click()
  67. Sistema = "Sistema Operativo Windows NT"
  68. Text1.Text= "Tiene usted un " & PC & " con el " & sistema
  69. End Sub
__________________
No hay preguntas tontas, solo gente estup..., ¡No!, ¿como era? No hay gente que pregunte a tontos... ¡Nooo!... ¡Vaya cabeza!