Private Function MaFonction(ByVal Chaine As String, ByVal LongueureLigne As Integer) As String Dim temp As String = "" For I As Integer = 0 To (Chaine.Length - 1) If ((I Mod LongueureLigne) = 0 And I > 0) Then temp += vbCrLf temp += Chaine.Chars(I) Next Return temp End Function
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionPublic Function MaFonction(Chaine As String, LongueureLigne As Integer) As String Dim temp As String temp = "" Dim I As Integer For I = 1 To Len(Chaine) If ((I Mod LongueureLigne) 0 And I > 0) Then temp temp + vbCrLf temp = temp + Mid(Chaine, I, 1) Next MaFonction = temp End Function