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

下列程序在调试时提示错误“块IF没有End If”,要使程序正常运行,则应该在        (填①或②)处添加语句             
Private Sub Image3_Click(Index As Integer)
Timer1.Enabled = False
Image1.Picture = Image3(Index).Picture
If x =" Index" Then
Label1.Caption = "平手"
Command1.Visible = True
           
Else
If x =" 1" And Index =" 2" Or x =" 2" And Index =" 3" Or x =" 3" And Index =" 1" Then
Label1.Caption = "您输"
Command1.Visible = True
Else
Label1.Caption = "您赢"
Command1.Visible = True
End If
          
End Sub

登录免费查看答案和解析

下列程序在调试时提示错误块IF没有EndIf,要使程序正常运