VB程序编写出错!求高手指点!『急』
来源:百度知道 编辑:UC知道 时间:2024/06/02 10:14:19
Private Sub Form_Load()
Dim x, y As Integer
If (x < 0) Then
y = 0
Else If (x = 0) Then
End Sub
第四行出错了,任务不能执行,该怎样修改?
Dim x, y As Integer
If (x < 0) Then
y = 0
Else If (x = 0) Then
End Sub
第四行出错了,任务不能执行,该怎样修改?
Private Sub Form_Load()
Dim x, y As Integer
If (x < 0) Then
y = 0
Else If (x = 0) Then 'Else If中间如果有空格的话,就应该在最后加两个end if,如果没有空格,就加一个end if
你的语句
end if
end if
End Sub
Private Sub Form_Load()
Dim x, y As Integer
If (x < 0) Then
y = 0
ElseIf (x = 0) Then
end if
End Sub
你注意了 elseif中else 和if 要连在一起写
楼上正解
没错,是END IF没写.
引用“”
Private Sub Form_Load()
Dim x, y As Integer
If (x < 0) Then
y = 0
ElseIf (x = 0) Then
end if
End Sub
你注意了 elseif中else 和if 要连在一起写