LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Intaris

Show Enum indices in selection list

Status: Declined

National Instruments will not be implementing this idea.

When I want to select a given index of an Enum (Index, not String value) then it can be cumbersome.

I can make the digital display visible for the constant or control, but when the drop-down list appears.... yeah.

Enum drop-down.png

Can't we include the Index on the left side of the drop-down list (Spot my numbering error)?

Enum drop-down with index.png

It's not too hard here because they're sequentially ordered (more or less) but we have some enums with over 100 elements which are not so nicely ordered. Sometimes we just need to find out which element corresponds to a given index, or to select a given index directly. This is not so easy manually. I know we can enter the value for a constant in the DigitalDisplay area to select that element, but I still feel it would be nice to include the index when showing the selection list.

 

This is useful anywhere there is an Integer to Enum conversion (or the opposite).

3 Comments
wiebe@CARYA
Knight of NI

You can edit the Digital Display to change it's value directly. Just a tip, not sure what that does to the idea.

 

It should at least be optional. I definitely don't want those numbers all the time.

Intaris
Proven Zealot

My personal suggestion would be that if the "Digital Display" is visible, show the indices in the list also

Darren
Proven Zealot
Status changed to: Declined

National Instruments will not be implementing this idea.