Following code is extracted from MSPRESS Hardcore Visual Basic, Second Edition ISBN 1-57231-422-2 p.279
Function IsArrayEmpty(va As Variant) As Boolean
Dim f As Boolean
On Error Resume Next
f = IsObject(va(LBound(va)))
IsArrayEmpty = (Err <> 0)
End Function
(corrections to this edition)
_________________________________
In theory, there is no difference between theory and practice. In practice, there is. [attributed to Yogi Berra]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.