+ Reply to Thread
Results 1 to 5 of 5

Returning data from Array is blank

  1. #1
    Forum Contributor
    Join Date
    09-03-2008
    Location
    Somerset, England
    MS-Off Ver
    XP, 2003, 2007 - depends on location
    Posts
    185

    Returning data from Array is blank

    Hey all,

    I have a feeling this is a daft question, but I cannot suss the answer. I have an Array of names that has been created in my code, and I need to output the unique names (name1, name2, name3) in the desired Cell. Using a function I was given on here previously I am able to pass the Array and another Array containg the unique values is created, but I cannot for the life of me work out how the Array is passed back so that I can extract the info? The way I have here causes no errors, but FeeEarnerTotal is blank.

    Any help greatly appricated.
    Thanks.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Ducks are better crispy...

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,289

    Re: Returning data from Array is blank

    You can't just dump an array into one cell anyway, but have you tried stepping through the code to see what is happening?
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    09-03-2008
    Location
    Somerset, England
    MS-Off Ver
    XP, 2003, 2007 - depends on location
    Posts
    185

    Re: Returning data from Array is blank

    I get that I can't just do that, I was just trying to get the initial syntax sorted and next I will sort out the output to that cell. I have stepped through the code and all that I get is a blank. No error occurs, and the variable FeeEarnerTotal remains empty through out. I can understand what is going on in the function and see how it can produce an array of unique items, but I just can't figure out how to get the Array out of the function.

    Thanks.

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,289

    Re: Returning data from Array is blank

    The function returns the array in this line:
    Please Login or Register  to view this content.
    when stepping through you should be able to check what is assigned to UniqueItems in that line.

  5. #5
    Forum Contributor
    Join Date
    09-03-2008
    Location
    Somerset, England
    MS-Off Ver
    XP, 2003, 2007 - depends on location
    Posts
    185

    Re: Returning data from Array is blank

    Sorted it. I had a problem a bit further up which meant the Array being passed to the function was actually empty, hence why whatever I tried failed!

    Thanks.

+ 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