Pass Array to function. Can't this be done?! Urgent. Thanks.

  • Thread starter Thread starter Shapper
  • Start date Start date
S

Shapper

Hello,

I have this function:

Sub MyFunction(ByVal myString As String, ByVal myArray() As String)
....
End Sub

And I am calling it this way:
MyFunction("hello", {"ola", "hola", "hello"})

I am having problems in passing the array,
What am I doing wrong?

Thanks,
Miguel
 
Back
Top