Foxtable(狐表)用户栏目专家坐堂 → 目录录入问题


  共有1282人关注过本帖平板打印复制链接

主题:目录录入问题

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


加好友 发短信
等级:五尾狐 帖子:1146 积分:7571 威望:0 精华:0 注册:2020/11/4 22:15:00
  发帖心情 Post By:2023/10/18 17:01:00 [只看该作者]

Dim s As String
Dim s2 As String
Dim trv As WinForm.TreeView = e.Form.Controls("TreeView1")
For Each nd As WinForm.TreeNode In trv.AllNodes
    If nd.level = 1 AndAlso nd.Checked Then    
       Tables("产品表").current("品种") = nd.Text
        For Each a As WinForm.TreeNode In nd.Nodes
            If a.Checked Then
                s2 = s2 & "," & a.Text
            End If
        Next
Tables("产品表").AddNew
Tables("产品表").current("品名") = s2
        
        Exit For
    End If
Next

不行,如何处理?

 回到顶部
总数 14 1 2 下一页