LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 1162 occurring when deleting menu item

Solved!
Go to solution

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 Kudos
Message 1 of 7
(4,685 Views)

Chuck,

 

You have forgotten to attach the screenshot 🙂

TailOfGon
Certified LabVIEW Architect 2013
0 Kudos
Message 2 of 7
(4,684 Views)

Oops! Here it is...

 

Chuck

0 Kudos
Message 3 of 7
(4,679 Views)

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 Kudos
Message 4 of 7
(4,675 Views)
Solution
Accepted by topic author 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 Kudos
Message 5 of 7
(4,668 Views)

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 Kudos
Message 6 of 7
(4,644 Views)

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 Kudos
Message 7 of 7
(4,641 Views)