好的,我有一个以字符串数组为输入的函数...
我有一个需要从该函数处理的字符串...
因此,
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
我也尝试过以下方法:
func(str.ToArray) // Gives error since it converts str to char array instead of String array.
我该怎么解决这个问题?