LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Combo box with search memory

I need to make a combo box that you can use to search, which remembers the last N amount of searches. It should also be able to remember in between runs and therefore I am okay with a file storage of some sort. I'm not sure of how to implement this however. Any help is much appreciated.

0 Kudos
Message 1 of 3
(2,998 Views)

Needs more information on your requirenment.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 3
(2,951 Views)

Hi an123,

 

I need to make a combo box that you can use to search, which remembers the last N amount of searches.

A combobox holds an array of strings. You need to create this array of strings on your own: each new "search item" should be added to this array. Then limit the array to N elements…

 

It should also be able to remember in between runs and therefore I am okay with a file storage of some sort.

You need to save this string array to a file at program shutdown. At program init state you read in the file and populate the combobox again…

Best regards,
GerdW


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