+ Reply to Thread
Results 1 to 5 of 5

Having problem with testing if array is empty .......see enclosed code

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Having problem with testing if array is empty .......see enclosed code

    Hi,

    I have an array that i am testing to see if it is empty but it does not see to work......i am enclosing the file and associated code as well.

    I have "commented" out the section that deals with testing if the array is empty or not. Its at the end of the code.
    Attached Files Attached Files
    Last edited by welchs101; 11-07-2011 at 11:13 AM.

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,016

    Re: Having problem with testing if array is empty .......see enclosed code

    Join will not work on a 2D array. Since you aren't using the second dimension of the notfound array, you might as well make it 1D instead.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Re: Having problem with testing if array is empty .......see enclosed code

    ok, did not know that...........

    any recommendation on how to make it 1D?

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,016

    Re: Having problem with testing if array is empty .......see enclosed code

    Instead of:
    Please Login or Register  to view this content.
    use simply:
    Please Login or Register  to view this content.
    and then only refer to one dimension when using it.

  5. #5
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    Re: Having problem with testing if array is empty .......see enclosed code

    thanks. I am still learning about arrays. I do get stumped on somethings which i think are simple...........like this one

+ 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