LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Combo Box assistance

Solved!
Go to solution

Hey guys,

 

I've been racking my brain for a few hours, I'm burnt out, and it's Friday.

 

I have a combo box that I am trying to get to populate a code and it's unique id so that, when I select a item within the combo box, it will feed other things in my application (the unique id). When I try to run the code and send the cluster of two elements to the StringsandValues property node (which it wants), I get this:

 

Error 1129 - LabVIEW: (Hex 0x469) You cannot assign the same numeric value to two or more strings in a ring control. You also cannot assign the same string value to two or more strings in a combo box control.

Property Name: Strings And Values []

 

What am I missing?

0 Kudos
Message 1 of 3
(2,317 Views)
Solution
Accepted by topic author Eric1977

Look through the values of the cluster array that you're passing to the Stings and Values[] property and see if there are any duplicates. Remember that an empty string counts as a value, so if 2 or more of the values are empty string, that will generate this error.

0 Kudos
Message 2 of 3
(2,299 Views)

Darren - Thank you for that little hint. I took the duplicates out in the query with a DISTINCT clause to remove the duplicates. Once I did that, the error disappeared.

0 Kudos
Message 3 of 3
(2,202 Views)