Results 1 to 5 of 5

Thread: Passing Arrays around Classes and subs

Hybrid View

  1. #1
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Passing Arrays around Classes and subs

    you will need to convert you string array to variant array of strings

    probably won't be able to "convert" the array, so you will have to copy the elements into a new array of variant type

    pete

  2. #2

    Thread Starter
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: Passing Arrays around Classes and subs

    Hmmm - I knew the arrays were useful and I recall (vaguely) that I had this problem before. Not exactly what I wanted to do, but I guess I have no choice.

    All I wanted was a reference to the array held on the form (or module) and then I can nuse the code in the class to pull the data I need from it. Not possible huh?

    I'll have another experiment and see.

    Thanks for the reply


    Edit:
    I have tried a simple one to another referenced array - and it works !!
    This is only between subs in the same module though, and I have a feeling Classes screwed that up a little. I'll post back in a while.
    Last edited by Ecniv; Jun 27th, 2005 at 09:50 AM.

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

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