📅  最后修改于: 2022-03-11 14:51:55.052000             🧑  作者: Mango
Public Function ArrayLen(arr As Variant) As Long
If IsEmpty(arr) Then
ArrayLen = 0
Else
ArrayLen = UBound(arr) - LBound(arr) + 1
End If
End Function