Hi Jeremy,

Thanks for the input.

However, it doesn’t work completely.
Although you can get a list of menus in the menu bar (GET MENU ITEMS), this 
doesn’t work when you pass the menu ref for one of the menus. 

In this case, GET MENU ITEMS returns empty arrays

Has anyone else come across this?

Regards,

Rudy Mortier
Two Way Communications bvba  -----------------



> On 26 Sep 2017, at 15:53, Jeremy French <jeremyfre...@mac.com 
> <mailto:jeremyfre...@mac.com>> wrote:
> 
> Hi Rudy,
> 
> Take a look at the commands in the “Menus” theme:
> 
> http://doc.4d.com/4Dv16R3/4D/16-R3/Menus.201-3217435.en.html 
> <http://doc.4d.com/4Dv16R3/4D/16-R3/Menus.201-3217435.en.html>
> 
> Then in the Application Environment, activate the menu bar you are interested 
> in and loop through the menus and menu items like this:
> 
> For ($menu_i;1;Count menus)
>       
>       $menu_title_t:=Get menu title($menu_i)
>       
>       For ($menu_item_i;1;Count menu items($menu_i))
>       
>               // Here use menu commands to retrieve menu item information.
>       
>       end for
>       
> End for
> 
> - Jeremy French
> 
> 
>> On Sep 26, 2017, at 8:51 AM, Two Way Communications via 4D_Tech 
>> <4d_tech@lists.4d.com <mailto:4d_tech@lists.4d.com>> wrote:
>> 
>> way to programatically produce a list of all the menu’s (defined in the 
>> design environment) and their menu items.
> 

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to