How can I get this to work?
VB Code:
Public Sub Foo(List() As Long) If IsEmpty(List) Then MsgBox "List is empty" Else MsgBox "List contains " & UBound(List) + 1 & " elements." End If End Sub Private Sub Form_Load() Dim Temp() As Long 'This would work but I need to check for EMPTY arrays 'ReDim Temp(2) Foo Temp End Sub
Basically I need a function to check if a array contains any elements or not.
