Text in ComboBox
Hello,
I need to put text from rapid variable (string) to list of members in Combo box. How can I do that? When I connect item with controller variable I get only text from appearance not from string variable.
Thank you for support. BR Jiri.
Answers
-
Hi Jiri,
Is the rapid defined as an array?
MODULE MainModule
PERS string stringVar{5}:=["uno","dos","tres","cuatro","cinco"];
PROC main()
<SMT>
ENDPROC
ENDMODULEBR/Carlos
Carlos Martinez
ABB0 -
Hello, no, when it´s defined as array, then everything is ok and I can see text defined in variable. But when It´s only one PERS string...... than I can see only text field defined in combo box settings.
BR Jiri.
0 -
Hi Jiri,
I am not sure if I am understanding your real need. Can you put a sample RAPID code?
The ComboBox allows you to list values, either by binding the collection of the ComboBox to a RAPID array, or by adding one item at a time (fixed values or individual RAPID data). In both cases, the value of the RAPID data (single or the array) will be presented in the UI.
BR/Carlos
Carlos Martinez
ABB0 -
-
Hi Jiri,
I was able to reproduce this bug. I also report this to our support team.
Thanks for your explanation. My guess is that you will need a workaround in the short term while this is fixed (either put them in an array, or do some extra coding in C#)
Thanks again for your feedback
BR/Carlos
Carlos Martinez
ABB0 -
Hello, I use array but I must change many things in rapid code.
Thank you for support.
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 798 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings