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?
VB Code:
  1. Public Function MyFunc(SourceArray) As String()
But if I try this then I get s syntax error:
VB Code:
  1. Public Function MyFunc(SourceArray As String()) 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?