Forum Migration Notice
We're transitioning to a more modern community platform by the end of this year. Learn about the upcoming changes and what to expect.
For Each object of Instance
Hello, with Instance I can do this according to documentation,.
# Button_1's onClick
console.log(Instance)
Instance.Button_2.text = "hello world";
But If I have 40 select componentes, how can I use it without write 40 lines, something like this:
For Each O in Instance do
if o.name = 'Select_1'
o.value = 'cup of cofffe'
Thanks
/Jorge
Jorge Turiel
Post edited by Jorge on
0
Comments
-
Hi, I found the soluttion.Instance["Select_1"]Jorge Turiel1
Categories
- All Categories
- 5.6K RobotStudio
- 401 UpFeed
- 21 Tutorials
- 16 RobotApps
- 306 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.9K Robot Controller
- 365 IRC5
- 86 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 854 RAPID Programming
- 37 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings