以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  遍历当前表字段,这段代码问题在哪里?  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=151297)

--  作者:yfy13338431925
--  发布时间:2020/6/19 17:48:00
--  遍历当前表字段,这段代码问题在哪里?
Dim ckl As WinForm.CheckedListBox = e.Form.Controls("CheckedListBox1")
Dim t As Table = CurrentTable
For Each dc As DataCol In DataTables(t).DataCols
    ckl.Items.Add(dc.name)
Next
[此贴子已经被作者于2020/6/19 17:57:20编辑过]

--  作者:有点蓝
--  发布时间:2020/6/19 20:03:00
--  
Dim ckl As WinForm.CheckedListBox = e.Form.Controls("CheckedListBox1")
For Each dc As DataCol In CurrentTable.DataTable.DataCols
    ckl.Items.Add(dc.name)
Next