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
Linee codice - Form1.frm

Form1.frm

Caricato da: Albertking82
Scarica il programma completo

  1. Dim s As String, l As Integer, i As Integer, s2 As String, c As Integer
  2. Private Sub Command1_Click()
  3. s = Text1.Text
  4. l = Len(s)
  5. For i = 1 To l
  6. s2 = Mid(s, i, 1)
  7. If s2 = Chr(13) Then
  8. c = c + 1
  9. End If
  10. Next i
  11. MsgBox "Il sorgente è composto da " & c + 1 & " linee di codice", vbInformation, "Numero linee"
  12. c = 0
  13. End Sub