这个程序哪里错了?为什么总是提示说下标越界?
Dimy()AsIntegerDimmm()AsIntegerDimiiAsIntegerDimjjAsIntegerForii=0Toa-1ReDimy(ii)AsIn...
Dim y() As Integer
Dim mm() As Integer
Dim ii As Integer
Dim jj As Integer
For ii = 0 To a - 1
ReDim y(ii) As Integer
ReDim mm(ii) As Integer
For jj = 0 To a - 1 - NUM
Picture2.CurrentX = 150 + 300 * ii
mm(ii) = InStr(Text2.Text, ii)
If mm(ii) = 0 Then
y(ii) = 300 * 5 - 150 - 300 * jj
Else
Dim QQ() As Integer
ReDim QQ(ii) As Integer
QQ(ii) = Mid(Text1.Text, mm(ii), 1)
Dim ff As Integer
ff = Val(QQ(ii))
y(ii) = y(ff)
End If
Picture2.CurrentY = Val(y(ii))
Picture2.Print "×"
Next jj 展开
Dim mm() As Integer
Dim ii As Integer
Dim jj As Integer
For ii = 0 To a - 1
ReDim y(ii) As Integer
ReDim mm(ii) As Integer
For jj = 0 To a - 1 - NUM
Picture2.CurrentX = 150 + 300 * ii
mm(ii) = InStr(Text2.Text, ii)
If mm(ii) = 0 Then
y(ii) = 300 * 5 - 150 - 300 * jj
Else
Dim QQ() As Integer
ReDim QQ(ii) As Integer
QQ(ii) = Mid(Text1.Text, mm(ii), 1)
Dim ff As Integer
ff = Val(QQ(ii))
y(ii) = y(ff)
End If
Picture2.CurrentY = Val(y(ii))
Picture2.Print "×"
Next jj 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询