Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
Morse - Form3.frm

Form3.frm

Caricato da: Netarrow
Scarica il programma completo

  1. Private Sub Command1_Click()
  2. Dim testo, content, content2 As String
  3. content = Form1.Text1.Text
  4. content2 = Form1.Text2.Text
  5. testo = Dir1.Path & "/" & Text1.Text
  6. If o1.Value = True Then
  7. Open testo For Output As #1
  8. Print #1, content2
  9. Unload Me
  10. ElseIf o2.Value = True Then
  11. Open testo For Output As #1
  12. Print #1, content
  13. Unload Me
  14. ElseIf o3.Value = True Then
  15. Open testo For Output As #1
  16. Print #1, content & vbCrLf & content2
  17. Unload Me
  18. End If
  19. End Sub
  20.  
  21. Private Sub Command2_Click()
  22. Unload Me
  23. End Sub
  24.  
  25. Private Sub Form_Load()
  26. Command2.Enabled = False
  27. End Sub
  28.  
  29. Private Sub o1_Click()
  30. Command2.Enabled = True
  31. End Sub
  32.  
  33. Private Sub o2_Click()
  34. Command2.Enabled = True
  35. End Sub
  36.  
  37. Private Sub o3_Click()
  38. Command2.Enabled = True
  39. End Sub