LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

to get combo box selected value at run time

hi 

i am using a combo box with 10 different values which is defined at the start and and i want to store only selected value at run time in an array of string . how can i achieve this ?  

 

i have 10 fixed value and let say i select only 5 at run time so i only want the selected value in an array of string in sequence in which value are selected..

0 Kudos
Message 1 of 5
(3,795 Views)

Hi shaun,

 

i have 10 fixed value and let say i select only 5 at run time so i only want the selected value in an array of string in sequence in which value are selected..

Everytime the user (or you) select an item in the combobox you store the corresponding string in an array.

What's the problem?

 

You know: when YOU have problems with YOUR vi then YOU should attach YOUR vi with YOUR message…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,769 Views)

how can you select multiple entries in a combo box?

my understanding is you cannot.

 

did you mean a listbox,

or did you mean whenever the user changes the value of the combobox you want the choosen value added to your string array?

 


If Tetris has taught me anything, it's errors pile up and accomplishments disappear.
0 Kudos
Message 3 of 5
(3,754 Views)

i figured out another solution so thanks everyone 🙂

0 Kudos
Message 4 of 5
(3,726 Views)

HI, 

Try this to add item strings to the combo box at run-time

 

 image.png

 

0 Kudos
Message 5 of 5
(3,721 Views)