vb.net 代码删除换行符chr(10)


Dim oldtxt As String = "含有换行符的文本字符串"
Dim newtxt As String = ""
newtxt = oldtxt.Replace(Chr(10), "")

'''注:其它的特殊符号 方法类似