LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
manu.NET

Enums with updatable strings property ...

Status: Declined

Any idea that has received less than 4 kudos within 4 years after posting will be automatically declined.

Hello,

 

The Enums types are very cool for "case structures" handling inside VI's block diagrams.

It is also easy to use them in Front panels ...

 

But, when you have to create multi langage applications, you have to face a big problem Smiley Embarassed:

 

         => The visible Enum strings cannot be modified ! Smiley Sad

 

It should be cool to be abble to modify the Strings viewed by an Enum using a propertySmiley Happy

 

You may say, I should use rings, or fill a combobox ... I know ! That's what i am using today !

But it should be so nice to have such a feature.

 

=> My reccursive automatic VI front panel translator would be abble to translate Enums dynamically !

      The Enum translation will not need any additionnal coding actions !

 

Thanks a lot.

 

Manu.net

 

Manu.net
3 Comments
Intaris
Proven Zealot

Nope.  An enum should NOT be ont he user interface.

 

Use a Ring with a translation layer to achieve what you want.

 

Enums with writeable strings are called Rings.

crossrulz
Knight of NI

If they were editable, then the case structures would not be able to know what values were available.  The whole point of an enum would be wiped out.  By definition, you are saying you do not want an enum, but a ring.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 4 kudos within 4 years after posting will be automatically declined.