LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2D-Array as input vi

Hi,

tst: I have a problem with you solution. In my combobox I have a list of items with their values associated (the value for each item is an ID that I use to do a SQL query) and you solution then returns the same name it appears in the combobox and not his value.

Dennis: I have test your vi in LV 7 express but.... when I run it, an error ocurs, it tells me an input parameter is invalid and I don't know why.

Thanks very much,

ToNi.
0 Kudos
Message 11 of 13
(621 Views)
Your problem with both solutions is the same - there is a difference between the values and the labels. Like Dennis said, for his solution you need the values to be 1,2,3 because he's translating the value into the index, so other numbers won't work. For mine, the names should be the same. I think you only have one option: Use the strings and values property and extract the values array. To do this, you will need a for loop with an unbundle VI. Then, use the 1D search on that array.

___________________
Try to take over the world!
0 Kudos
Message 12 of 13
(615 Views)
Ok,

Thanks very much.
0 Kudos
Message 13 of 13
(603 Views)