Ok, I understand that this is telling me I cannot pass an array into a string. So here is where I am confused.
Public Sub Main()
Dim asr As AppSettingsReader = New AppSettingsReader
Dim ServerList As String = CType(asr.GetValue("ServerList", GetType(String)), String)
Dim Servers As String() = ServerList.Split(";")
For Each server As String In Servers
currentSQLServer = CStr(server) ' convert to string here, which means output is a string, right?
So why when I run a:
BuildConfigFile(ByVal currentSQLServer as string) ' Fires once per string element found
Dim split_String as string = currentSQLServer.split(“\”,1)
Dim split_string2 as string = currentSQLServer.split(“\”,2)
I get a conversion error?
They are both strings right, I cannot seem to isolate that string from the array eventhough only one string value is returned.