以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  目录树管理表的问题  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=88232)

--  作者:douglas738888
--  发布时间:2016/7/29 14:18:00
--  目录树管理表的问题
请教老师,我看了帮助中的目录树管理表,想实现 在一个窗口中,左边根据需要的表 形成目录树后,点击表名,可在右边的SQLTABLE表中打开表

SQLTABLE 是不绑定任何表的,无论点击哪个表名,都在比如  窗口_Table1 中打开

窗口的AfterLoad事件代码设置为:

Dim trv As WinForm.TreeView = e.Form.Controls("TreeView1")
Dim
nd As WinForm.TreeNode
nd = Trv.Nodes.Add(
"分类1","分类1")
nd.Nodes.Add(
"表A")
nd.Nodes.Add(
"表B")
nd.Nodes.Add(
"表C")
nd = Trv.Nodes.Add(
"分类2","分类2")
nd.Nodes.Add(
"表D")
nd.Nodes.Add(
"表E")



TreeView控件的NodeMouseClick事件代码设置应该怎样写????:

If e.Node.Level = 1 Then
    MainTable
= Tables(e.Node.Text)
End
If


--  作者:Hyphen
--  发布时间:2016/7/29 14:57:00
--  
If e.Node.Level = 1 Then
    Tables("窗口1_Table1").Fill("se lect * from {" & e.Node.Text & "}")
End If