Dim Str As String = "0 0" & Chr(10) & Chr(13) & vbcrlf & "0"
Dim Int As Integer
Output.Show("【第1次输出】")
With Str
Str = Str.Replace(vbcrlf,Chrw(12276))
Str = Str.Replace(Chr(13),Chrw(12276))
Str = Str.Replace(Chr(10),Chrw(12276))
Int = Str.Length
For I As Integer = 0 To Int - 1
Output.Show(Ascw(Str.Chars(I)))
Next
End With
Output.Show("【第2次输出】")
Str = "0 0" & Chr(10) & Chr(13) & vbcrlf & "0"
With Str
Str = .Replace(vbcrlf,Chrw(12276))
Str = .Replace(Chr(13),Chrw(12276))
Str = .Replace(Chr(10),Chrw(12276))
Int = Str.Length
For I As Integer = 0 To Int - 1
Output.Show(Ascw(.Chars(I)))
Next
End With
【输出结果】
【第1次输出】
48
32
48
12276
12276
12276
48
【第2次输出】
48
32
48
10
13
13
10
48
【问题】
Chr(10)在第2次是多余的,这问题搞了我昨天一下午,现在汇报给组织,忘改进!