Yesterday I asked how to have a function pass an arrayas its return value. Now I need to know how to pass the array back to a function. Here is what I currently have, but doesn't this make the variable a variant?
But if I try this then I get s syntax error:VB Code:
Public Function MyFunc(SourceArray) As String()
Does ParamArray have anything to do with it? I tried using this (without having any idea what I was doing), but to no avail. What does ParamArray do anyway?VB Code:
Public Function MyFunc(SourceArray As String()) As String()




Reply With Quote