Foxtable(狐表)用户栏目专家坐堂 → 目录树的选定内容如何保存成一行


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

主题:目录树的选定内容如何保存成一行

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


加好友 发短信 一级勋章
等级:超级版主 帖子:7235 积分:40574 威望:0 精华:16 注册:2008/8/31 23:23:00
  发帖心情 Post By:2013/5/11 10:35:00 [显示全部帖子]

With Tables("名录搜索_tblSearchjindu")
    Dim trv As WinForm.TreeView = e.Form.Controls("TreeView1")
    Dim r As Row = .addnew()
    r("tijiaoriqi") = Date.Today
    r("guanjianci")=e.Form.Controls("txtSearch").text
    For Each nd As WinForm.TreeNode In trv.AllNodes
        If nd.Checked = True Then
            If r.Isnull("guanjianci") = True
                r("guanjianci")= trv.SelectedNode.Text
            Else
                r("guanjianci") =  r("guanjianci") & "," & trv.SelectedNode.Text
            End If
        End If
    Next
End With


 回到顶部