Foxtable(狐表)用户栏目专家坐堂 → [求助]请老师帮助看一下“保存”按钮代码


  共有2098人关注过本帖树形打印复制链接

主题:[求助]请老师帮助看一下“保存”按钮代码

帅哥哟,离线,有人找我吗?
有点甜
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2017/12/14 23:33:00 [显示全部帖子]

你datacolchanged事件代码的问题。

 

systemready = False
Dim trv As WinForm.TreeView = e.Form.Controls("TreeView1")
Tables("事件表").Current("目录树字符串") = ""
Tables("事件表").Current("目录树字符串") = trv.SaveToString()   '写入目录树字符串

Dim nr As Row = Tables("事件表").current    '写入节点名称
Dim str As String = ""
For Each nd As WinForm.TreeNode In trv.Nodes
    For Each cnd As WinForm.TreeNode In nd.AllNodes
        If cnd.Nodes.Count = 0 Then
            str &= cnd.FullPath.replace("\", ",") & vbcrlf
        End If
    Next
Next
nr("文本") = str
systemready = True


 回到顶部