首页 / 高中信息技术 / 试题详细
  • 更新 2022-09-03
  • 科目 信息技术
  • 题型 填空题
  • 难度 中等
  • 浏览 468

下列程序在调试时提示①处出现语法错误,修改相关错误使得程序能够正常运行,则①处所在行的语句修改之后应为                  
Dim api As Integer
api = Val(Text1.Text)
If api <=" 50" Then
Label2.Caption = "优"
Picture1 =" LoadPicture(App.Path" & "\空气质量VB-1.jpg")
End If
If 50 < api ≤ 100 Then      ①
Label2.Caption = "良"
Picture1 =" LoadPicture(App.Path" & "\空气质量VB-2.jpg")
End If
If api > 100 And api <=" 150" Then
Label2.Caption = "轻微污染"
Picture1 =" LoadPicture(App.Path" & "\空气质量VB-3.jpg")
End If
If api > 150 And api <=" 200" Then
Label2.Caption = "轻度污染"
Picture1 =" LoadPicture(App.Path" & "\空气质量VB-4.jpg")
End If
If api > 200 And api <=" 250" Then
Label2.Caption = "中度污染"
Picture1 =" LoadPicture(App.Path" & "\空气质量VB-5.jpg")
End If
If api > 250 And api <=" 300" Then
Label2.Caption = "中度重污染"
Picture1 =" LoadPicture(App.Path" & "\空气质量VB-6.jpg")
End If
If api > 300 Then
Label2.Caption = "重污染"
Picture1 =" LoadPicture(App.Path" & "\空气质量VB-7.jpg")
End If

登录免费查看答案和解析

下列程序在调试时提示①处出现语法错误,修改相关错误使得程序能