请高手来看看这行简单的VB代码,哪错了!

来源:百度知道 编辑:UC知道 时间:2024/05/11 13:31:14
做按钮的代码。
Private Sub Command1_Click()
If Option1.Value = True Then
Text1.Text = Option1.Caption
End If

If Option2.Value = True Then
Text1.Text = Option2.Caption
End If

If Option3.Value = True Then
Text1.Text = Option3.Caption
End If

If Option4.Value = True Then
Text1.Text = Option1.Caption + " " + Option4.Caption
Else
Text1.Text = Option1.Caption + " " + Option5.Caption
End If
If Option4.Value = True Then
Text1.Text = Option2.Caption + " " + Option4.Caption
Else
Text1.Text = Option2.Caption + " " + Option5.Caption
End If
If Option4.Value = True Then
Text1.Text = Option3.Caption + " " + Option4.Caption
Else
Text1.Text = Option3.Caption + " " + Option5.Caption
End If

怎么总是显示第三个名,而第一、二个名则不显示。

照这个做的。
请高手来看看这行简单的VB代码,哪错了! 高手来看看这段VB代码 简单的VB代码 VB高手们来看看这段代码 一段VB代码的问题,VB高手请近来帮帮忙 问一个VB的简单的代码,请回答~谢谢 简单VB程序的一段代码,请大侠帮忙一下 vb的最简单代码 简单的VB实现代码! 请高手解释一下vb代码