vb中计算任意一位数组元素个数的公式是


vb中计算任意一位数组元素个数的公式是
对于一维数组a
元素个数为 UBound(a)-LBound(a)+1
例世蚂卖如搜逗:物唯
Private Sub Command1_Click()
Dim a(5) As Integer
Debug.Print LBound(a), UBound(a)
End Sub