标题:[求助]vb中下一个窗体如何引用上一个窗体中的数组
取消只看楼主
xiaojiasheng
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2006-5-6
 问题点数:0 回复次数:0 
[求助]vb中下一个窗体如何引用上一个窗体中的数组

Private Sub Command1_Click()
Dim yinsu As Integer, I As Integer, S As String, J As Integer
a1 = Val(Form21.Text1.Text)
b1 = Val(Form21.Text2.Text)
a2 = Val(Form21.Text3.Text)
b2 = Val(Form21.Text4.Text)
ReDim A(a1, b1)

S = "因素" & " "
For J = 1 To b1

S = S & " " & Str(J) & Chr(13)
Next J
S = S & Chr(10)
For I = 1 To a1
S = S & "水平" & Str(I)
For J = 1 To b1
A(I, J) = InputBox("请输因素水平值", "因素水平值输入")
S = S & " " & Str(A(I, J))
Next J
S = S & Chr(13) & Chr(10)
Next I
Text1.Text = S

End Sub
我想引用A(a1, b1)

搜索更多相关主题的帖子: 窗体 
2006-05-07 01:24



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-62279-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.732223 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved