0
嘿家伙我尝试加载从一个数组的字符串(在这种情况下,URL),然后下载文件,但我得到下面这个错误:从数组中获取字符串?
Argument cannot be Nothing.
Parameter name: address
这里是我的代码:
Dim urld As String
urld = dls.GetValue(dlcount)
My.Computer.Network.DownloadFile(urld, "images/image-" + dlcount.ToString + ".png")
Form1.o.Text = Form1.o.Text + urld + vbNewLine
dls是数组。
我以为我做的一切正确,但也许不是。
好吧,做了一些调试,那是这种情况,我将如何去检索字符串在数组中的某个索引? –
@Duncan:推测只是用'urld = dls(dlcount)'。 – LukeH
仍然没有返回任何内容:\ –