This blog shares my journey as a software engineer, along with personal reviews and life experiences I’ve gained along the way. “I have not failed. I've just found 10,000 ways that won't work.” — Thomas Edison. If you enjoy my content, please support it by clicking on ads (free for you, big help for me!) or by buying me a coffee on Ko-fi. Thank you!
Tuesday, November 13, 2007
Check empty array Trick
The old trick for checking for an empty array is
Dim X() As String
If (Not X) = -1 Then Debug.Print "empty" Else Debug.Print "UBound is " & UBound(X) End If
No comments:
Post a Comment