Our online shopping is experiencing intermittent service disruptions.

Support teams are actively working on the resolution.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Populate a combo box from a txt file

Solved!
Go to solution

Hi, I'm trying to populate string and value of a combo box from a txt file (Lista motori) but i don't get any result. Someone can help me please? Where do i make mistakes?

Download All
0 Kudos
Message 1 of 5
(653 Views)
Solution
Accepted by topic author tj1995

You cannot have duplicate values, so once you fix your datafile, here's all you need:

 

altenbach_0-1702655587987.png

 

0 Kudos
Message 2 of 5
(626 Views)

@altenbach wrote:

You cannot have duplicate values, so once you fix your datafile...


I think the second column is not a unique id, but rather a property "Limite" associated to the motor.

So he may want to use a ring instead, and create a cluster array from the file, which he can index later to select the motor configuration:

 

raphschru_1-1702656516480.png

 

Regards,

Raphaël.

0 Kudos
Message 3 of 5
(619 Views)

Thank you guys!

0 Kudos
Message 4 of 5
(608 Views)

@raphschru wrote:

@altenbach wrote:

You cannot have duplicate values, so once you fix your datafile...


I think the second column is not a unique id, but rather a property "Limite" associated to the motor.

 


I never (ever!) use comboboxes in my code, so my first idea was to switch to a ring, then I noticed that one of the "values" is not numeric. It is not clear if that was just a column header (language!) and that we can assume that all other values are numeric.

 

If we want the column headers as captions for the elements, here's what I would do. No FOR loop needed!

 

altenbach_0-1702659920102.png

 

0 Kudos
Message 5 of 5
(589 Views)