Hi,
I am trying to use a combo box in InTouch 10.0 this way:
- fill in some values (wcInsertItem())
- read an index value from the PLC
- set the combo box to the value on that index
After that the user can select the values and the index is written back to the PLC.
That second part works fine. Also the filling and reading from PLC part.
The problem is that I cannot make the combo box select a value based on its index. More general, I cannot make the combo box select an entry based in anything. Maybe I got blinded by looking into the same direction for hours now, but I did not see anything to accomplish that in the manual.
Is there a way to make a combo box select (and show) a value from within a script, so without user interaction?
Thanks.
I am trying to use a combo box in InTouch 10.0 this way:
- fill in some values (wcInsertItem())
- read an index value from the PLC
- set the combo box to the value on that index
After that the user can select the values and the index is written back to the PLC.
That second part works fine. Also the filling and reading from PLC part.
The problem is that I cannot make the combo box select a value based on its index. More general, I cannot make the combo box select an entry based in anything. Maybe I got blinded by looking into the same direction for hours now, but I did not see anything to accomplish that in the manual.
Is there a way to make a combo box select (and show) a value from within a script, so without user interaction?
Thanks.