06-25-2012 03:55 PM
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
Solved! Go to Solution.
06-25-2012 04:00 PM
Chuck,
You have forgotten to attach the screenshot 🙂
06-25-2012 04:03 PM
Oops! Here it is...
Chuck
06-25-2012 04:12 PM
It can't find your tag. Check the tag name in the RTM against your string constant. There is a mismatch somewhere.
06-25-2012 05:28 PM - edited 06-25-2012 05:28 PM
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.
06-26-2012 08:50 AM
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
06-26-2012 09:07 AM
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.