-- 作者:大红袍
-- 发布时间:2016/3/30 10:57:00
--
Dim trv As WinForm.TreeView = e.Form.Controls("TreeView1") Dim t As Table = Tables("表A")
For Each c As Col In t.cols If c.caption Like "*_*" Then Dim ary() As String = c.caption.split("_") If trv.Nodes.Contains(ary(0)) = False Then trv.nodes.Add(ary(0)) End If trv.Nodes(ary(0)).Nodes.Add(ary(1)) End If Next
|