[RESOLVED] [2005] need help downloadstring
i try to use downloadstring to get the data online and split the data into string array, but it show ERROR
Value of type 'String' cannot be converted to '1-dimensional array of String'. Below are my code:
Code:
Dim client As New Net.WebClient
Dim strArray As String() = client.DownloadString(("http://n2ntbfd01.itradecimb.com/rtQuote.dll?GetStockGeneral&Key=0001")) '.Split("|", 20)
Re: [2005] need help downloadstring
Of course you get that error because you've commented out the bit that splits it into an array. DownloadString returns a String, unsurprisingly. You can assign that String a String array variable. If you call the String's Split method that that will return a String array, which you can assign to a String array variable.