Results 1 to 2 of 2

Thread: How can you check if an array is empty?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 2003
    Posts
    1,269

    How can you check if an array is empty?

    so i dont get the nasty error if i try u/lbound(array) when the array is empty

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Check the length property.
    VB Code:
    1. If arr.Length>0 then  MessageBox.Show("I am not empty")

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