キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

menu reference

解決済み
解決策を見る

In my subvi, I am trying to get the main vi's menu's reference, so that I can modify the main vi's menu with vi such as Set Menu Item Info.  How do I get the reference in a subvi?  Is there a property I can use?

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 件の賞賛
メッセージ1/4
3,196件の閲覧回数

Some quick searching around leads me to believe that this isn't available.  You can get the path to the main VI's menu, but not a reference to the menu itself.  If knowing the path to the .rtm file doesn't help, can you put the main VI's menu reference into a global (ahem) that you can read from the sub VI?

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

メッセージ2/4
3,185件の閲覧回数
解決策
トピック作成者jyang72211が受理

Any reason not to simply pass the menu reference from the main VI to the subVI?

メッセージ3/4
3,178件の閲覧回数

Darin - No reason.  I had no idea what I was thinking.  Thanks for pointing that out. 

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 件の賞賛
メッセージ4/4
3,172件の閲覧回数