vb这题怎么做?
1个回答
展开全部
Private Sub Command1_Click()
Dim s As String
s = "我是一个" & _
IIf(Option1.Value, Option1.Caption, Option2.Caption) & _
IIf(Option3.Value, Option3.Caption, Option4.Caption) & ",爱好:" & _
IIf(Check1.Value, Check1.Caption & "、", "") & _
IIf(Check2.Value, Check2.Caption & "、", "") & _
IIf(Check3.Value, Check3.Caption & "、", "")
s = Left(s, Len(s) - 1) & "。"
Text1.Text = s
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询