天气预报显示代码问题
Private Sub Timer1_Timer()Dim a As String, i As Integer, j As Integer
a = Inet1.OpenURL("http://tianqi., icString)
i = InStr(a, "description")
j = InStr(a, "北京天气预报代码免费调用")
lable1.caption = Mid(a, i + 22, j - i - 23)
End Sub
在软件正常显示天气后,我人为短掉网络,可是怎么lable1.caption还是在显示有天气预报,我想让他在突然断网后显示为零 或者没有数据。谢谢!