妈的我被耍晕了。
来源:百度知道 编辑:UC知道 时间:2024/06/20 11:17:36
在VB里面 if、else、 end if到底怎么用啊。
还有VB里面怎么没有 eles if
还有VB里面怎么没有 eles if
有 if 当然会有 end if 咯
有开头就会结束
else 是两个选择的
如果不是一就是二
if x=true
y=one
else <-----
if x=false <-----
y=two
end if
看到上面的<----吗?
else if 也是可以连在一起的!
else if x=false
都是一样的!
If Index = 0 Then CopyActiveControl
ElseIf Index = 1 Then
CopyActiveControl
ElseIf Index = 2 Then ClearActiveControl
Else PasteActiveControl
End If
写成elseif
不是 else if
你肯定是把endif放在else if前面了。else if是放在endif前面的。