Advertisement
idsystems

VBBD_Ejercicio 01 - Editor Sencillo

Jan 17th, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Private Sub cmdGuardar_Click()
  2. On Error GoTo ErrorDesconocido
  3.  
  4. Open "C:\DATOS.DOC" For Output As #1
  5.    
  6. Print #1, Text1.Text
  7.    
  8. Close #1
  9.    
  10. MsgBox ("Los datos han sido guardado.")
  11.  
  12. Exit Sub
  13. ErrorDesconocido:
  14.     MsgBox ("Ha ocurrido un error al intentar guardar el archivo.")
  15.  
  16. End Sub
  17.  
  18. Private Sub cmdSalir_Click()
  19. End
  20. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement