Private Sub Form_Load() Dim SurStation(1) As String, XNfile(2) As String SurFile = "D:\micapsdata\surface\tmax-p\" + Right(NmDate, 6) + "02.000" If Dir(SurFile) = "" Then Text3.Text = "无" Text7.Text = "无" Else FileNumber1 = FreeFile(0) Open SurFile For Input As #FileNumber1 Do Line Input #FileNumber1, Fir If Fir <> "" Then If InStr(1, Fir, SurSurStation(0)) > 0 Then SurTMax = Mid$(Fir, 29, 5) DoEvents Text3.Text = SurTMax End If If InStr(1, Fir, SurSurStation(1)) > 0 Then SurTMax = Mid$(Fir, 29, 5) DoEvents Text7.Text = SurTMax End If End If Loop Until EOF(1) = True End If Close #FileNumber1 SurFile = "D:\micapsdata\surface\tmin-p\" + Right(NmDate, 6) + "14.000" If Dir(SurFile) = "" Then Text4.Text = "无" Text8.Text = "无" Else FileNumber1 = FreeFile(0) Open SurFile For Input As #FileNumber1 Do Line Input #FileNumber1, Fir If Fir <> "" Then If InStr(1, Fir, SurSurStation(0)) > 0 Then SurTMin = Mid$(Fir, 29, 5) DoEvents Text4.Text = SurTMin End If If InStr(1, Fir, SurSurStation(1)) > 0 Then SurTMin = Mid$(Fir, 29, 5) DoEvents Text8.Text = SurTMin End If End If Loop Until EOF(1) = True End If Close #FileNumber1 SurFile = "D:\micapsdata\surface\tmax-p\" + Right(NmYDate, 6) + "02.000" If Dir(SurFile) = "" Then Text1.Text = "无" Text5.Text = "无" Else FileNumber1 = FreeFile(0) Open SurFile For Input As #FileNumber1 Do Line Input #FileNumber1, Fir If Fir <> "" Then If InStr(1, Fir, SurSurStation(0)) > 0 Then SurTMax = Mid$(Fir, 29, 5) DoEvents Text1.Text = SurTMax End If If InStr(1, Fir, SurSurStation(1)) > 0 Then SurTMax = Mid$(Fir, 29, 5) DoEvents Text5.Text = SurTMax End If End If Loop Until EOF(1) = True End If Close #FileNumber1