题库 高中信息

题干

下列程序在调试时提示错误“块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[:Zxxk.Com]
Else
Label1.Caption = "您赢"
Command1.Visible = True
End If
         
End Sub
上一题 下一题 0.99难度 填空题 更新时间:2016-01-21 06:12:30

答案(点此获取答案解析)