Dim a() As IntegerDim i As Integer
Private Sub Command1_Click()i = i + 1ReDim Preserve a(i)a(i) = InputBox("下面请输入数", "输入")Label2.Caption = a(i)End Sub
Private Sub Command2_Click()For j = 1 To is = s + a(j)Next jLabel4.Caption = sEnd Sub加上按纽有何用,我没加
呵呵 添加command 然后i=i+1这着用得好!ding!
这个程序用数据库来做应该要简单得多 ,否则按照上面那个程序,中间输错一个,死了