cancelar
Mostrando los resultados de 
Buscar en lugar de 
Quiere decir: 

Combo Box assistance

¡Resuelto!
Ir a solución

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
Mensaje 1 de 3
3.114 Vistas
Solución
Aceptado por el autor del tema 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
Mensaje 2 de 3
3.096 Vistas

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
Mensaje 3 de 3
2.999 Vistas