ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert string array to enum at runtime

Solved!
Go to solution
Solution
Accepted by topic author Michael.Koppelgaard

Try this:

 

snip.png

Message 21 of 24
(2,945 Views)

Since you want a string in the end, use a ComboBox.  It behaves just like a ring, but has a string data type.



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
Message 22 of 24
(2,934 Views)

Caveat is that ring and combo box constants are NOT automatically updated with a typedef update.  There's complicated procedure to get them to update, but even then I think it might only work on those constants already in memory.

 

Could someone remind me how to do this stuff?

 

Thanks!

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 23 of 24
(2,929 Views)

great 🙂

Thanks both of you, Crossrulz and sirwin.

0 Kudos
Message 24 of 24
(2,922 Views)