以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  [求助]远程服务器返回错误(404)未找到。如何处理?  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=83972)

--  作者:dqlgood
--  发布时间:2016/4/20 14:52:00
--  [求助]远程服务器返回错误(404)未找到。如何处理?
Dim p(6) As String
p(0) = "300464"
p(1) = "300465"
p(2) = "300466"
p(3) = "300468"
p(4) = "300469"
p(5) = "300473"
For i As Integer = 0 To 5
    Dim xz As String = "http://table.finance.yahoo.com/table.csv?s=" & p(i) & ".sz"
    Dim bc As String = "d:\\测试\\" & p(i) & ".csv"
    Network.DownloadFile(xz,bc)
Next
大部分股票代码的数据可下载,但个别股票的出现如图:

图片点击可在新窗口打开查看此主题相关图片如下:qq截图20160420142500.png
图片点击可在新窗口打开查看
所示错误,如何跳转过去?


--  作者:大红袍
--  发布时间:2016/4/20 15:03:00
--  
Dim p(6) As String
p(0) = "300464"
p(1) = "300465"
p(2) = "300466"
p(3) = "300468"
p(4) = "300469"
p(5) = "300473"
For i As Integer = 0 To 5
    try
        Dim xz As String = "http://table.finance.yahoo.com/table.csv?s=" & p(i) & ".sz"
        Dim bc As String = "d:\\测试\\" & p(i) & ".csv"
        Network.DownloadFile(xz,bc)
    catch ex As exception
        msgbox(ex.message)
    End try
Next