10-10-2014 03:24 AM
In my program, I want to add int "34" "43","17"...... and let user choose one of them from combo box. How can I add such items in combo box at runtime. Create a property node "String[]"? I try that but its display is "3443". I wanna to display like "34"
43
17
Solved! Go to Solution.
10-10-2014 03:33 AM
Did you wire an array of 3 elements to the property node? A string with linefeed wont do.
/Y
10-10-2014 03:52 AM - edited 10-10-2014 03:53 AM
See attached snippet
10-10-2014 07:34 AM
In my program, I fetch data one by one. first, I fetch 34, second, I fetch 43 and so on. So I want to add item one by one also. but I can not link string to string[]. So how can I do?
10-10-2014 07:56 AM
10-10-2014 08:04 AM
Seeattachedsnippet,itmayhelp.
10-10-2014 08:36 AM
Just a small tip.
Adding Strings[] is probably not ideal unless Values = strings property is true and I can't tell if it is from the OPs question! Better practice is to use the Strings and Values[] property and add both the string and the value
10-10-2014 10:04 PM
One more question. How can I clear items from combo box when my program start up. use another property?
10-11-2014 03:08 AM
10-11-2014 03:22 AM - edited 10-11-2014 03:23 AM
If you want to clear the contents of combo box, just create array constant for the same property node and do not include any element in that array. (empty array)