How to pass a Function returning an array as a parameter




Hello,

If a have a function which returns a multidimensional array. How can I pass it as parameter for a subprocedure?

Here's a skeleton of my code:

Function CreateAnArray()

'code to fill a resizable array called MyArray() as String

CreateAnArray = MyArray()

End Function

Sub UseOneArray(OneArray() as String)

'do things with OneArray()

End Sub

Call UseOneArray (CreateAnArray)

This code doesn't work. I'd appreaciate any help in order to do that.

Regards,

Guillermo
.



Relevant Pages

  • Re: How to pass a Function returning an array as a parameter
    ... Function CreateAnArray() as string() ... If a have a function which returns a multidimensional array. ... Sub UseOneArrayas String) ...
    (microsoft.public.word.vba.beginners)
  • Re: generating a wordlist from an array of arrays
    ... >>multidimensional array. ... > sub gen_list { ... > return @$suffixes unless @_; ... made it shorter than I would have expected. ...
    (perl.beginners)
  • Re: generating a wordlist from an array of arrays
    ... > multidimensional array. ... I am bit rusty, because it took me a little too long to make it work, ... but here is a recursive solution: ... sub gen_list { ...
    (perl.beginners)
  • Are arrCart here is a Table?
    ... this source code form a shopping-cart, I'm confuseing on the array of ... "arrCart", is it a table? ... a multidimensional array seems like a table ... Sub CartAddItem ...
    (microsoft.public.inetserver.asp.general)
  • Re: multidimensional arrays (vector)
    ... > I create a multidimensional array: ... > Why do I get an segmentation fault error? ... > I also tried to resize the array before, ... a possible reason would be because it doesn't know string size ...
    (comp.lang.cpp)