From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I retrieve the selected text from an ENUM, text ring or other control?

I want to be able to select a line of text from a menu, and place that text in a string variable. This seems simple but I haven't found the solution. I don't want to have to wire a numeric output to a case statement, thus having to type the text line twice.
0 Kudos
Message 1 of 2
(2,239 Views)
Create a property node of the menu ring, and select Strings [], which is 2nd from the bottom of list. This gives you an array of all the menu strings. Index this array with the numeric output from the menu ring and this will give you your string.

Not a case structure in sight!
Message 2 of 2
(2,239 Views)