VB中怎么把多个textbox里面的数值存放到一个数组中
推荐于2016-05-01
展开全部
用3个控件数组吧
Private Sub Command1_Click()
Dim x(0 To 7), y(0 To 7), z(0 To 7)
For i = 0 To 7
x(i) = Text1(i)
Next
For i = 0 To 7
y(i) = Text2(i)
Next
For i = 0 To 7
z(i) = Text3(i)
Next
End Sub
Private Sub Command1_Click()
Dim x(0 To 7), y(0 To 7), z(0 To 7)
For i = 0 To 7
x(i) = Text1(i)
Next
For i = 0 To 7
y(i) = Text2(i)
Next
For i = 0 To 7
z(i) = Text3(i)
Next
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询