else没有if
来源:百度知道 编辑:UC知道 时间:2024/05/19 07:23:23
If Combo1.Text = Combo1.List(0) Then Text1.Text = Combo1.List(0)
Else
If Combo1.Text = Combo1.List(1) Then Text1.Text = Combo1.List(1)
Else
If Combo1.Text = Combo1.List(2) Then Text1.Text = Combo1.List(2)
Else
Text1.Text = Combo1.List(2)
End If
Else
If Combo1.Text = Combo1.List(1) Then Text1.Text = Combo1.List(1)
Else
If Combo1.Text = Combo1.List(2) Then Text1.Text = Combo1.List(2)
Else
Text1.Text = Combo1.List(2)
End If
If Combo1.Text = Combo1.List(0) Then
Text1.Text = Combo1.List(0)
Else
If Combo1.Text = Combo1.List(1) Then
Text1.Text = Combo1.List(1)
Else
If Combo1.Text = Combo1.List(2) Then
Text1.Text = Combo1.List(2)
Else
Text1.Text = Combo1.List(2)
End If
End If
End If
代码结构写的不规整 到时候自己倒霉!~
If Combo1.Text = Combo1.List(0) Then
Text1.Text = Combo1.List(0)
Else
If Combo1.Text = Combo1.List(1) Then
Text1.Text = Combo1.List(1)
Else
If Combo1.Text = Combo1.List(2) Then
Text1.Text = Combo1.List(2)
Else
Text1.Text = Combo1.List(2)
End If
endif
endif