01-25-2011 12:53 PM
I'm working on a project where I have a couple of VIs that have menu rings wired up to a main connector. This allows me to create a constant when I use the VI as a sub-VI and then select from a list of options. The problem is that when I want to change the menu I have to go back and upate all of the constants where the VI is used as a sub-VI. Is there some better method for doing this where I don't have to go through and update all of my code every time I change the menu?
Solved! Go to Solution.
01-25-2011 12:56 PM
typdef enum
01-25-2011 01:05 PM
As Paul said. An Enum with a strict type def will allow you to apply changes when you update the control. you lose the ability to programatically edit the control's Strings[] property. If you do not need to determine these strings from a file the enum is the way to go.