vb中 为什么显示end if 没有块if
PrivateSubCommand1_Click()i=1m=Text1.TextWhilei<=3Ifm>texti.TextThenm=texti.TextEndIf...
Private Sub Command1_Click()
i = 1
m = Text1.Text
While i <= 3
If m > texti.Text Then m = texti.Text
End If
i = i + 1
Wend
Print m
End Sub 展开
i = 1
m = Text1.Text
While i <= 3
If m > texti.Text Then m = texti.Text
End If
i = i + 1
Wend
Print m
End Sub 展开
2个回答
展开全部
Private Sub Command1_Click()
i = 1
m = Text1.Text
While i <= 3
If m > texti.Text Then m = texti.Text
End If
i = i + 1
Wend
Print m
End Sub
“If m > texti.Text Then m = texti.Text”
If m > texti.Text Then m = texti.Text
这种连续写法不需要加End If
你只需要删掉就好
需要加End If的写法
If m > texti.Text Then
m = texti.Text
End If
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询