需要帮助如何通过crlf正确拆分字符串是代码:
Dim str As String = "Hello" & vbCrLf & "World"
Dim parts As String() = str.Split(ControlChars.CrLf.ToCharArray)
For Each part As String In parts
MsgBox(part)
Next
Run Code Online (Sandbox Code Playgroud)
产量
Hello
World
Run Code Online (Sandbox Code Playgroud)
我想摆脱两者之间的空白.
你好
世界