Well, I have a function that takes a string array as input…
I have a string to process from that function…
So,
Dim str As String = "this is a string"
func(// How to pass str ?)
Public Function func(ByVal arr() As String)
// Processes the array here
End Function
I have also tried:
func(str.ToArray) // Gives error since it converts str to char array instead of String array.
How can I fix this?
With VB10, you can simply do this:
With an older version you’ll have to do: