Results 1 to 21 of 21

Thread: [resolved for the moment] IsEmptyArray()?

Threaded View

  1. #1

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088

    [resolved for the moment] IsEmptyArray()?

    How can I get this to work?

    VB Code:
    1. Public Sub Foo(List() As Long)
    2.     If IsEmpty(List) Then
    3.         MsgBox "List is empty"
    4.     Else
    5.         MsgBox "List contains " & UBound(List) + 1 & " elements."
    6.     End If
    7. End Sub
    8.  
    9. Private Sub Form_Load()
    10.     Dim Temp() As Long
    11.    
    12.     'This would work but I need to check for EMPTY arrays
    13.     'ReDim Temp(2)
    14.    
    15.     Foo Temp
    16. End Sub

    Basically I need a function to check if a array contains any elements or not.
    Last edited by Fox; Mar 24th, 2004 at 02:13 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width