Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共2 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:[求助]复选列表框

1楼
风声 发表于:2023/11/3 14:21:00
老师好,下面代码不起作用。

图片点击可在新窗口打开查看此主题相关图片如下:2023-11-03 14 16 10.png
图片点击可在新窗口打开查看

Dim clist As WinForm.CheckedListBox = e.Form.Controls("CheckedListBox1")
For i As Integer = clist.Items.Count - 1 To 0 Step -1
    Tables(e.Form.Controls("ComboBox7").Text).Cols(i).Visible = not clist.GetItemChecked(i)
Next
2楼
有点蓝 发表于:2023/11/3 14:28:00
调试

Dim clist As WinForm.CheckedListBox = e.Form.Controls("CheckedListBox1")
msgbox(e.Form.Controls("ComboBox7)
For i As Integer = clist.Items.Count - 1 To 0 Step -1
msgbox("i=" & i & ",Checked=" & (not clist.GetItemChecked(i)))
    Tables(e.Form.Controls("ComboBox7").Text).Cols(i).Visible = not clist.GetItemChecked(i)
Next

共2 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .05664 s, 2 queries.