如果将一个 textbox 中的内容以回车符分割成一个数组?
初识.NET。。。谢谢 问题点数:10、回复次数:4Top
1 楼ljmay168(軍)回复于 2003-12-01 18:01:02 得分 0
dim str as string()=Me.TextBox1.Text.Split(vbCrLf)Top
2 楼ht1980(葬月)(马甲)回复于 2003-12-01 18:16:00 得分 0
Dim str As String()
str = frm1.TextBox1.Text.Split(vbCrLf)
MsgBox(UBound(str))
我输入了好几行内容,都带有回车
为什么 MsgBox 的提示却是 0 ?!Top
3 楼menuvb(戏子,白日做梦)回复于 2003-12-01 19:31:12 得分 10
Dim str() As String
str = TextBox1.Text.Split(Chr(13))
MsgBox(str.GetUpperBound(0))Top
4 楼ht1980(葬月)(马甲)回复于 2003-12-01 20:09:45 得分 0
.NET和VB的区别这么大
那ubound还有用吗??Top




