求助关于多个textbox的值赋给数组的问题
1个回答
展开全部
在form2的窗体中
Dim i As Integer
Dim x(7) As Textbox
Dim y(7) As Textbox
For i = 0 To 7
x(i) = form1.Controls("textbox" & i + 1)
Next
For i = 0 To 7
y(i) = form1.Controls("textbox" & i + 9)
Next
怎么在form2中获取form1这个对象,不知道你的具体情况,你得自己解决
Dim i As Integer
Dim x(7) As Textbox
Dim y(7) As Textbox
For i = 0 To 7
x(i) = form1.Controls("textbox" & i + 1)
Next
For i = 0 To 7
y(i) = form1.Controls("textbox" & i + 9)
Next
怎么在form2中获取form1这个对象,不知道你的具体情况,你得自己解决
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询