Binding an array to ComboBox
osku
✭✭
in ScreenMaker
Hi all!
I tried to bind a string array to ComboBox, but there is some problems with that - it doesn't change the selected value. Both the array and the selected value controller object (num) has defined as pers. The list of strings will show up in the Combo, but selected value remains unchanged.
I also have a one ComboBox with num array and that works fine. Does anyone knows if there is some restriction of using string arrays in ComboBox?
-Osku
0
Comments
-
Hello,I used a small RAPID program to reproduce the scenario you have mentioned:MODULE ssPERS string task_list{3} := [ "T_STN1", "T_ROB1", "T_ROB2" ];PERS string sValue := "T_ROB1";PERS num s := 2;PROC main()sValue := "T_ROB1";ENDPROC ENDMODULEThe variable in use is1. sValue which is of type string bound to SelectedValue property.2. task_list which is a string arrayString array is bound to combo box and sValue is bound to selected Value.The value in the combobox changes when sValue is updated (that is while running the program or clicking of button).I was not able to reproduce the issue, is there another scenario you were trying out.The selectedValue should also be a string in this case and not a num.Thanks0
-
Hello!Thanks for your reply, you solved my problem! For some reason I thought the selected value would be the selected index and therefore binded that to num. It works fine when binded to string, so thanks again!-Osku0
Categories
- All Categories
- 5.5K RobotStudio
- 395 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings