03-26-2013 11:59 AM
Hi,
I am trying to figure out how to add information from a database to a combo box. I am reading two columns, the first is used as the Item and the second for the Value. There are multiple rows in the table, and I need an entry for each. It currently only adds one entry. The vi is attached.
Thanks,
Chris
Solved! Go to Solution.
03-26-2013 12:55 PM - edited 03-26-2013 12:56 PM
Hi CLH239,
I don't understand your question exactly.
Lets say your database fetch results with this 2D array :
What do you want to insert into the ComboBox Strings and Values ?
Do you use only one ComboBox ?
03-26-2013 01:04 PM - edited 03-26-2013 01:17 PM
Hi again,
Attaching a VI... Is that what you mean ?
03-26-2013 01:18 PM
Hi Amitai,
Thanks for the reply. That was exactly what I was trying to do. I found a way to do it using a shift register (attached), yours is much simpler.
Thank you,
Chris
03-26-2013 01:29 PM - edited 03-26-2013 01:30 PM
Hi,
Notice that I have edited the VI Attached a few minutes after posting it....
What I attached at the first time was your VI exactly, just adding a For Loop and changed the wiring to correspond with the default wiring of the For Loop.
I am attaching the VI here again, so you can see that what you have done was correct, and you just needed a For Loop.
I have corrected the VI, to make it more simple.
You can see the differences between the VI attached now to yours (the original one) ,
using the VI Compare tool (Tools >> Compare >> Compare VI's)
(you will have to have both VI's opened before starting the tool)