Results 1 to 3 of 3

Thread: (RESOLVED) How to create a function that returns an array?

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2002
    Posts
    50

    (RESOLVED) How to create a function that returns an array?

    Apologies if this has been covered before, I am trying to create a function that will return an array - I'm not sure how to declare this.

    If this is the declaration:

    Private Function NameOfFunction(blablabla) As Double

    I want "NameOfFunction" to be, say, a 10*10 array. Any suggestions would be great.

    Another question too, after I'm done with this, can I just assign this to an array, like:
    dim table(9,9) as Double
    table=NameOfFunction

    ... or will I need to assign each element of the array separately?

    Thank you!
    Last edited by tassosp; Oct 26th, 2004 at 03:42 AM.

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