vb if语句中的结束
PrivateSubCommand3_Click()If(Image5=Image3)ThenMsgBox("进程二已运行!")//如何让这里直接结束而不运行下面的if?...
Private Sub Command3_Click()
If (Image5 = Image3) Then MsgBox ("进程二已运行!") //如何让这里直接结束 而不运行下面的if?
If (a < 8) Then
If (a = 0) Then Picture16 = Picture1
If (a = 1) Then Picture17 = Picture1
If (a = 2) Then Picture18 = Picture1
If (a = 3) Then Picture19 = Picture1
If (a = 4) Then Picture20 = Picture1
If (a = 5) Then Picture21 = Picture1
If (a = 6) Then Picture22 = Picture1
If (a = 7) Then Picture23 = Picture1
a = a + 1
Image5 = Image3
Else
MsgBox ("内存满!")
End If
End Sub
在下面的IF加上Else跟我说Else没有IF无法运行 展开
If (Image5 = Image3) Then MsgBox ("进程二已运行!") //如何让这里直接结束 而不运行下面的if?
If (a < 8) Then
If (a = 0) Then Picture16 = Picture1
If (a = 1) Then Picture17 = Picture1
If (a = 2) Then Picture18 = Picture1
If (a = 3) Then Picture19 = Picture1
If (a = 4) Then Picture20 = Picture1
If (a = 5) Then Picture21 = Picture1
If (a = 6) Then Picture22 = Picture1
If (a = 7) Then Picture23 = Picture1
a = a + 1
Image5 = Image3
Else
MsgBox ("内存满!")
End If
End Sub
在下面的IF加上Else跟我说Else没有IF无法运行 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询