+ Reply to Thread
Results 1 to 2 of 2

Array Problem -- again!

  1. #1
    Forum Contributor
    Join Date
    01-19-2006
    Posts
    142

    Array Problem -- again!

    Hello,

    Is there a method to find if array elements have been set? For example;

    ReDim Preserve ary(1 To 3, 1 To 3, 1 To Counter) - sets up array

    '@ Deletes array values
    i = 6
    Do
    For j = 1 To 3
    ary(UBound(ary, 1), j, i) = ""
    ary(UBound(ary, 2), j, i) = ""
    ary(UBound(ary, 3), j, i) = ""
    Next j
    i = i + 1
    Loop Until i = 7

    When i enter data the counter may only = 3 but my loop for deleting the array values starts from 6 thus i get a 'Subscript out of range' error as ary(UBound(ary, 1), j, 6) will not exist - anyone know a method to state if an array has been set?

  2. #2
    Forum Contributor
    Join Date
    01-19-2006
    Posts
    142
    No matter, have sorted it out now!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1