怎么让i点一次自加1啊,老是下标越界,
想让自加1的个程序怎么老是下标越界啊,i应该怎么给初值啊
Private Sub Command1_Click()
Static i As Integer
Dim q(50, 0) As Double
Combo1.AddItem i
If i <> 0 Then i = 1 Else: i = i + 1
Call shuju(q)
q(i + 1, 0) = Text1.Text
q(i + 1, 1) = Text2.Text
q(i + 1, 2) = 0
End Sub
Public Sub shuju(w)
End Sub
[此贴子已经被作者于2007-6-13 10:16:08编辑过]