Hi,
I pretty new to VB2005 i was just working on a project a problem arise which really got me frustrated.
Dim searchThese(1) As String
myvar(0) = "Hi"
myvar(1) = "Bye"
searchfolder(my var as string)
after defining the above array i was making a function like this:
Function SearchFolder(By Val myvar As String())
// code here
End Function
when i run the above could i get an error saying "Value of '-1 Dimensional array of string' cannot be converted to string"
i am really confused on why this is happening and how i can resolve this problem any help would be highly appreciated.
Regards
I pretty new to VB2005 i was just working on a project a problem arise which really got me frustrated.
Dim searchThese(1) As String
myvar(0) = "Hi"
myvar(1) = "Bye"
searchfolder(my var as string)
after defining the above array i was making a function like this:
Function SearchFolder(By Val myvar As String())
// code here
End Function
when i run the above could i get an error saying "Value of '-1 Dimensional array of string' cannot be converted to string"
i am really confused on why this is happening and how i can resolve this problem any help would be highly appreciated.
Regards
Comment