满意答案
RX7810
2013.05.24
采纳率:40% 等级:12
已帮助:10400人
首先设置text1的multiline属性设置为true(允许多行显示,这点非常重要)
然后在check1的click事件下写
if check1.value=1 then
text1.text="您好"
end if
再在"check2的click事件下写
if check2.value=1 then
text1.text=text1.text & vbcrlf & "谢谢"
end if
你究竟要达到什么效果呢,点一个check显示下一个check?
这样的话给你个示例,其他的照着弄就是了
在check1的click下写:
if check1.checked=true then
text1=check1.caption & vbcrlf & check2.caption]
建议你弄一个check的控件数组(选中一个,然后复制粘贴)
然后再check的click事件下写
if index mod 2= 0 then'双号
text1=text1 & vbcrlf & check1(index).caption & vbcrlf & check1(index+1).caption
end if
找这种方法做就是了,自己在动脑经想想就能搞定了
10分享举报