以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  代码为什么报错  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=16526)

--  作者:lpxjw_zyl
--  发布时间:2012/2/16 15:35:00
--  代码为什么报错
For Each d As RibbonMenu.Tab In RibbonTabs
    For Each d1 As RibbonMenu.Group In d.Groups
        Output.Show(d1.name)
        For Each xs As RibbonMenu.Button In d1.Items
            Output.Show(xs.text)
        Next
       
    Next
Next

--  作者:狐狸爸爸
--  发布时间:2012/2/16 15:42:00
--  

问题出在这里,不是每个项目,都是按钮的:

 

For Each xs As RibbonMenu.Button In d1.Items