1个回答
展开全部
\'check1(0)至check1(4)为checkbox数组,
Private Sub Command1_Click()
\'command1.caption=\"确定\"
Text1.Text = \"\"
For i = 0 To 4
If Check1(i).Value = Checked Then
Text1.SelText = Check1(i).Caption & \"(\" & i & \")\" & \"被选中\" & vbCrLf
Else
Text1.SelText = Check1(i).Caption & \"(\" & i & \")\" & \"未选中\" & vbCrLf
End If
Next i
End Sub
Private Sub Command1_Click()
\'command1.caption=\"确定\"
Text1.Text = \"\"
For i = 0 To 4
If Check1(i).Value = Checked Then
Text1.SelText = Check1(i).Caption & \"(\" & i & \")\" & \"被选中\" & vbCrLf
Else
Text1.SelText = Check1(i).Caption & \"(\" & i & \")\" & \"未选中\" & vbCrLf
End If
Next i
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询