vb调试中提示缺少子程序、函数或属性的错误
PrivateSubCommand1_Click()DimPersonAsStringPerson=Text1.TextIfOption1.Value=TrueThenP...
Private Sub Command1_Click()
Dim Person As String
Person = Text1.Text
If Option1.Value = True Then
Person = Person + ":" + "本科生,"
Else
Person = Person + ":" + "研究生,"
End If
Person = Person + "选修的课程有:"
If Check1.Value = 1 Then
Person "" + Check1.Caption
End If
If Check2.Value = 1 Then
Person "" + Check2.Caption
End If
If Check3.Value = 1 Then
Person "" + Check3.Caption
End If
If Check4.Value = 1 Then
Person "" + Check4.Caption
End If
MsgBox Person, vbInformation, "显示选修课程"
End Sub 展开
Dim Person As String
Person = Text1.Text
If Option1.Value = True Then
Person = Person + ":" + "本科生,"
Else
Person = Person + ":" + "研究生,"
End If
Person = Person + "选修的课程有:"
If Check1.Value = 1 Then
Person "" + Check1.Caption
End If
If Check2.Value = 1 Then
Person "" + Check2.Caption
End If
If Check3.Value = 1 Then
Person "" + Check3.Caption
End If
If Check4.Value = 1 Then
Person "" + Check4.Caption
End If
MsgBox Person, vbInformation, "显示选修课程"
End Sub 展开
2个回答
展开全部
Private Sub Command1_Click()
Dim Person As String
Person = Text1.Text
If Option1.Value = True Then
Person = Person + ":" + "本科生,"
Else
Person = Person + ":" + "研究生,"
End If
Person = Person + "选修的课程有:"
If Check1.Value = 1 Then
Person = Person + " " + Check1.Caption
End If
If Check2.Value = 1 Then
Person = Person + " " + Check2.Caption
End If
If Check3.Value = 1 Then
Person = Person + " " + Check3.Caption
End If
If Check4.Value = 1 Then
Person = Person + " " + Check4.Caption
End If
MsgBox Person, vbInformation, "显示选修课程"
End Sub
Dim Person As String
Person = Text1.Text
If Option1.Value = True Then
Person = Person + ":" + "本科生,"
Else
Person = Person + ":" + "研究生,"
End If
Person = Person + "选修的课程有:"
If Check1.Value = 1 Then
Person = Person + " " + Check1.Caption
End If
If Check2.Value = 1 Then
Person = Person + " " + Check2.Caption
End If
If Check3.Value = 1 Then
Person = Person + " " + Check3.Caption
End If
If Check4.Value = 1 Then
Person = Person + " " + Check4.Caption
End If
MsgBox Person, vbInformation, "显示选修课程"
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询