请问下下面这段代码那儿有问题,导航下面一级的任务集隐藏不了
Dim dh As WinForm.TopicBar = Forms("导航栏").Controls("TopicBar1")
For Each dh1 As WinForm.TopicPage In dh.Pages
For Each dh2 As WinForm.TopicLink In dh1.Links
dh.Pages(dh1.Name).Visible = True
For Each dr As DataRow In DataTables("用户_授权").Select("用户 not Like '*"& _username &"*' and 子节点 is null")
dh.Pages(dr("父节点")).Visible = False
Next
Next
For Each dr1 As DataRow In DataTables("用户_授权").Select("用户 not Like '*"& _username &"*' and 子节点 is not null")
dh.Pages(dh1.Name).Links(dr1("子节点")).Visible = False
Next
Next
[此贴子已经被作者于2018/9/2 11:01:04编辑过]