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
mydvdlist - Frmdettagli.frm

Frmdettagli.frm

Caricato da: Albertking82
Scarica il programma completo

  1. Option Explicit
  2.  
  3. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
  4. frmLista.Lbldettagli.Visible = False
  5. End Sub
  6.  
  7. Private Sub mnunumfilms_Click()
  8. Dim n5 As Integer, a As Integer
  9. Dim n6 As Integer
  10. Dim l As String, strl As String
  11. l = Frmdettagli.Text1.Text
  12. n6 = FreeFile
  13. n5 = FreeFile
  14. Open "c:\numero.dat" For Output As #n5
  15.  Print #n5, l
  16. Close #n5
  17. Open "c:\numero.dat" For Input As #n6
  18. While Not EOF(n6)
  19. Line Input #n6, strl
  20. a = a + 1
  21. Wend
  22. Close #n6
  23. MsgBox "Il numero di films presenti è " & a - 1, vbInformation, "Films"
  24.  
  25. End Sub