array: subscript out of range

Results 1 to 3 of 3

Thread: array: subscript out of range

  1. #1
    Web Mistress Guest

    Default array: subscript out of range

    I think this may be an easy question...<BR><BR>How do you test to see if an array element does not exist?<BR><BR>For example:<BR><BR>nameArray(0) = "Renee"<BR>&#039nameArray(1) never gets defined<BR><BR>lastName = nameArray(1) ERROR!!!!!!!!!<BR><BR>Thanks in advance.<BR><BR>

  2. #2
    Steve Cimino Guest

    Default RE: array: subscript out of range

    Check your Array by using UBound(myArray), and never go above that number. You can&#039t use:<BR><BR>If IsEmpty(myArray(1)) because you&#039ll get the same error.

  3. #3
    Web Mistress Guest

    Default I was afraid of that... *sigh* Thanks!


Posting Permissions

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