LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get "Item" string from my combo box?

I use a combobox where ITEMS are eg "R1234", "R7019". My VALUES for these are :"TY02" and "TZ03".

 

Now I select an ITEM, and the VALUE for that ITEM is output. Also, at the same time, I want ti get the String of the ITEM. How do I do this?

 

I tried creating a property node for the combobox ==> Strings [].

 

However, this is for string array, where it doesnt just only show the ITEM i want.

 

Please help, thanks!

0 Kudos
Message 1 of 4
(5,907 Views)

Hi xf,

 

you can search the string in the array to get back its index...

You can use the "strings and values" property to get both values to search for.

Message Edited by GerdW on 10-21-2009 01:15 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(5,899 Views)

Is that what u want to get?

 

Yours

RZM

Message 3 of 4
(5,889 Views)

I have the same requirement of having to select from the combo box. I have labview 8.6, so the previous example didn't work on my system.

This is harder than I thought.

Waiting for help

 

Arjun 

 

0 Kudos
Message 4 of 4
(5,718 Views)