LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Filtering strings from combobox

Hello,

i have a combobox on a GUI, which is filled with strings from a database. The selection of the correct string to use later, is done by the drop down menu, clicking the arrow and choosing the correct string, or by typying on the keyboard the correct string, if the user knows it. Is there a way to filter the strings while user types? I mean, suppose the list of the combobox is:

hello.txt

help.txt

hot.txt

huge.txt

...

when operator starts to type and pushes "he", only the strings including "he" will be shown into the combobox, in the example:

hello.txt

help.txt.

 

Is there a way to refresh the list in the combobox at run-time in that way?

 

Thank you

 

 

0 Kudos
Message 1 of 3
(114 Views)

Hi Johnny,

 


@johnny_74 wrote:

Is there a way to refresh the list in the combobox at run-time in that way?


I used a separate string control where the user could type its text. This text was used to filter the array of available strings and to set the listbox (in my case)…

 

You could do the same and change the items of the combobox. (I prefer listboxes…)

Best regards,
GerdW


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

Hi GerdW,

it's an idea.

I will try with listboxes too.

 

Thank you very much for reply

Best REgards

J

0 Kudos
Message 3 of 3
(99 Views)