Hi Keisuke, thanks for pointing this out.
As I was looking for a way to list the contents of the menus as defined in the
menu editor, I wasn’t looking at the commands to create dynamic menus….
… my bad ;-)
Two Way Communications bvba -
> On 28 Sep
you could also use Create menu($) to duplicate it in memory.
> 2017/09/28 1:20、Two Way Communications via 4D_Tech <email@example.com>
> I eventually realised that I need to call SET MENU BAR($i) for every menu bar
> I want to get the menus and menu items for,
No, I am not adding dynamic menus.
I needed a list of all the menu bars, their menus and their menu items as set
in the Menu editor.
I eventually realised that I need to call SET MENU BAR($i) for every menu bar I
want to get the menus and menu items for,
and then to this:
I gather you are adding one or more dynamic menus to the menu bar created in
the Menu Editor. In that case, you need to work with references, not a
The positional index works only for menus created in the Menu Editor.
Try this, which assumes no hierarchical
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?
Take a look at the commands in the “Menus” theme:
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)
I have been looking through the documentation and on this list, and there seems
to be no way to programatically produce a list of all the menu’s (defined in
the design environment) and their menu items.
Am I overlooking something? Can it even be done?
Met vriendelijke groeten,
Mail list logo