04-25-2015 03:35 PM
Hello all,
I followed a tutorial from NI website and programmatically edit items in a combo box. It worked successfully but not for the Local variables. Local variables still retain items that it had before.
Any suggestions ?
Thanks !
Solved! Go to Solution.
04-25-2015 04:24 PM
The Strings[] property node contains a list of all possible values user can select from the front panel.
This property doesn't change the value. The local variable returns the value selected.
What do you need to do more precisely?
Cheers,
04-25-2015 04:47 PM
So I understood that string[] Property node modifies the list of items that the user can select and the Combo box local variable returns a value that user selcted. But what I still don't understand why the indicator of the Local variables contains old list items ? In some way, I thought once I write a new list into string[] Property, the old list should be gone then.
04-25-2015 05:16 PM
It's not the local variable that has different items. It is the indicator that has a different list of items from the control.
04-25-2015 05:29 PM
You need to programmatically update the value property in order to change what the local variable will return, the value that you will wire doesn't have to match with one of the Strings[] array.
Perhaps you need to do something like this to update your value to change from "Two" to "Five".