[求助]二维数组
比如我定义一个二维数组,窗体上有3个text框,第1次输入的3个数作为数组的第1行,第2次输入的数作为数组的第2行,依次类推,怎么实现啊数组我可以定义为A(N,3),怎么判断每次输入的次数呢
请指点!
谢谢
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim a(,) As Integer
Static s As Integer
ReDim a(s, 2)
a(s, 1) = CInt(TextBox1.Text)
a(s, 2) = CInt(TextBox2.Text)
Label1.Text &= CStr(a(s, 1)) & ControlChars.CrLf
Label2.Text &= CStr(a(s, 2)) & ControlChars.CrLf
s += 1
End Sub