我有下面的代码;VB.NET不需要的额外中断
Dim orderlist As List(Of String) = New List(Of String)
For i As Integer = 0 To newacctlist.Items.Count - 1
orderlist.Add("This order will be placed on" & newacctlist.Items(i))
Next (i)
Textbox1.Lines = orderlist.ToArray
当我导入项目从txt文件,作为结果,第一个我出来是正确的,但未来的人得到一个不需要休息。他们出来的:从txt文件
This order will be placed on
Monday
,而不是
This order will be placed on Monday
进口
Dim a As String = My.Computer.FileSystem.ReadAllText(path & "\neworder.txt")
Dim b As String() = a.Split(vbNewLine)
newacctlist.Items.AddRange(b)
如何解决这个问题?
在此先感谢
它的工作!我很感激帮助 –