04-10-2013 08:20 AM
Currently still on Labview 2011 (upgrading within a few weeks to 2012 SP1) I have the following bug:
If a Menu Ring is disabled and has a "normal" (non-empty) value it will keep its contents (meaning: shown text will remain) when you overwrite StringsAndValues[] with an empty array.
I was unable to find anything about it either officially fixed / known or on this forum, meaning it will probably still be there in the latest version.
Can someone please verify to see if this bug indeed (still) exists in the latest Labview version?
Solved! Go to Solution.
04-10-2013 10:56 AM
I just checked this out on 2012 SP1, and if you write an empty array to the StringsAndValues property, it will not change the displayed text (regardless of whether the control is enabled or not). This had not been previously reported to R&D, so I filed CAR 402291.
As a workaround, you can use a space in the string instead of a completely empty array and that should work as you expect. Since you are not able to define a ring with completely blank elements, I am not surprised this fails, but in my opinion the property node should at least throw an error in that case, which is why I went ahead with the CAR.
Regards,
Jeff Peacock
Product Support Engineer | LabVIEW R&D | National Instruments
04-11-2013 01:58 AM
Thanks, though I fail to see why a Menu Ring can not be empty. Imo there should NOT be an error message, but just a plain empty control (or indicator).
I use the Menu Ring to show and allow (if there are other types available) to change a subtype of an electronic product. The control typically does so for released products, meaning I filter out products (and subtypes) still under development (or still undefined). The list can thus be empty. People busy with development have a setting available to also show (and change to / from) these new or (as of yet) unknown types and products. When there are no elements (in this case: subtypes) or only one the control is disabled.
I looked further into this and at no point does Labview mention, force or coerce a user to have at least one element in a (Menu) Ring.
04-11-2013 08:57 AM
@Ettepet wrote:
Thanks, though I fail to see why a Menu Ring can not be empty. Imo there should NOT be an error message, but just a plain empty control (or indicator).
I agree with that. For some reason in my mind I was thinking it was associating blank strings with valid integer values in the ring, but that is not the case. I agree it should be possible to reset a ring to blank (since that is the default when it is dropped). The visible text is not being updated, which is the bug.