作者fancies (N )
看板Visual_Basic
標題[.NET] 有關print出來的問題..請各位幫忙 謝謝~
時間Sun Jun 12 23:40:25 2005
Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnPrint.Click
Dim index As Integer = 0
For index = 0 To intArrayname.GetUpperBound(0)
If intArrayname(index) <> "" Then
TextBox1.Text = intArrayname(index) & ControlChars.CrLf
MsgBox(intArrayname(index))
End If
Next
For index = 0 To intArraytel.GetUpperBound(0)
If intArraytel(index) <> "" Then
TextBox2.Text = intArraytel(index) & ControlChars.CrLf
End If
Next
End Sub
End Class
這段程式我是要把Array裡面的東西印出來..可是我卻都只有印出最後一個資料..
老師教的是& ControlChars.CrLf就是會變成下一行..不知道是哪邊出了問題 謝謝~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.104.31.59