Hi,
It is possible to get a vi's menu reference, and edit the reference inside a
sub vi (, using 'Insert Menu Item', etc).
You cannot create a menu, and then pass this menu to another vi, and replace
it. (Or you can, but you'll have to iterate all menu items from the source,
and put them into the destination, won't be nice).
To get a vi's reference, use Functions>Application Control>Menu>Current VI's
Menubar.
Good luck,
Wiebe.
"Wimlex" wrote in message
news:506500000008000000D33D0000-1012609683000@exchange.ni.com...
> Hello,
>
> I have a main Vi and i don't want all of my code in this Vi. I have
> problem with the menu. The menu is generated from files on the
> harddrive(it's a very dynamic menu). This works but the (sub-)Vi is
> very complex. But no
w I want to pass trough the menu to the main VI.
> So is it possible to pass a menu to an other VI?
>
> Thanks,
>
> Wimlex