vb.net 逐行读取RichTextBox内容

前端之家收集整理的这篇文章主要介绍了vb.net 逐行读取RichTextBox内容前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Function Fn_ConvertVBCode() As StringBuilder
Dim tmp As New StringBuilder

For i As Integer = 0 To RichTextBox1.Lines.Count - 1
Dim txt As String = Me.RichTextBox1.Lines(i)
If txt.Contains("""") Then
txt = txt.Replace("""","""""")
End If
tmp.Append("SwFromFileStream.Write(""" & txt & """ + vbCrLf)" + vbCrLf)
Next

Return tmp End Function

原文链接:https://www.f2er.com/vb/259695.html

猜你在找的VB相关文章