取消
顯示結果 
搜尋替代 
您的意思是: 

Error 1162 occurring when deleting menu item

已解決!
前往解決方案

I am trying to create custom menus in the menu bar of a VI in LabVIEW 2010, and consistently receive error 1162 when I try to delete the 'Rename Folder of VIs' entry in the File menu. I can delete the entire menu and add it back to accomplish the deletion, but I intend to retain some of the app-level functions such as 'Save As...'. Does anyone have any idea why this happens? I have tried deleting by name, (both app_Rename Folder of VIs and Rename Folder of VIs) and by number. Neither works. I've attached a screenshot of the VI and the error.

 

Lenovo Think Center M-series computer (core i7)

running Windows XP

 

Thanks for any help,

 

Chuck

0 積分
1 條訊息(共 7 條)
5,303 檢視

Chuck,

 

You have forgotten to attach the screenshot 🙂

TailOfGon
Certified LabVIEW Architect 2013
0 積分
2 條訊息(共 7 條)
5,302 檢視

Oops! Here it is...

 

Chuck

0 積分
3 條訊息(共 7 條)
5,297 檢視

It can't find your tag.  Check the tag name in the RTM against your string constant.  There is a mismatch somewhere.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 積分
4 條訊息(共 7 條)
5,293 檢視
解決方案
由主題作者所接受 Chuck60148

I think it is a tag mismatch too. Try running Get Menu Item Info primitive by specyfing item tag to "app_File", then make sure the output array "submenu tags" includes a string you set to delete.

TailOfGon
Certified LabVIEW Architect 2013
0 積分
5 條訊息(共 7 條)
5,286 檢視

Thanks to both of you. That was a good idea. I guess the next question is: How can there be menu items present that don't have menu tags? There are 2 items that don't show up in the tag list, but do show up in the menu: 'Locate in Project...' and 'Rename Folder of VIs...' At least having a list of the tags will make it easier to add back the system entries I want to retain. I can still delete the problem entries by deleting the entire menu and then adding it back, as it does come back empty.

 

Chuck

0 積分
6 條訊息(共 7 條)
5,262 檢視

The menu items will still show in the RTM without tags.  You must have a tag listed in the RTM selection in order to use it.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 積分
7 條訊息(共 7 條)
5,259 檢視