//标题菜单总数IntegerTitletotals=0//获取标题菜单总数及标题菜单名Titletotals=UpperBound(m_main_menu.Item)stringTitleName=""//标题菜单循环控制变量,遍历标题菜单IntegerTitleNo=0//标题菜单下分项菜单总数及分项菜单名IntegerItemtotals=0stringItemName=""//分项菜单循环控制变量,遍历分项菜单IntegerItemNo=0//标题菜单循环ForTitleNo=1ToTitletotals//获取标题菜单名Titl