(VB)Dim A(-5 To 8)as Integer为什么定义的数组元素个数是13而不时14里?
0为什么不算哦?
[解决办法]
同意楼上答复,测试代码如下:
Option Explicit
Dim i As Integer
Dim A(-5 To 8) As Integer
Private Sub Form_Load()
For i = -5 To 8
A(i) = i + 10
Print "A( " & i & ")= " & A(i)
Next
End Sub