Foxtable(狐表)用户栏目专家坐堂 → [求助]关于加载树能不能修改显示名称?


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

主题:[求助]关于加载树能不能修改显示名称?

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


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

Tables("表A").OpenLoadTree("第一列|第二列")
For Each a As OBJECT In Tables("表A").grid.Parent.controls
    For Each b As OBJECT In a.controls
        If B.text = "加载树" Then
            Dim tr = b.controls(0).controls(0).controls("tr")
            For Each nd As object In tr.nodes
                For Each cnd As object In nd.nodes
                    cnd.text = cnd.name & "年"
                Next
                If nd.text = "true" Then
                    nd.text = "是"
                ElseIf nd.text = "false" Then
                    nd.text = "否"
                End If
            Next
        End If
    Next
Next

 回到顶部