# For Each object of Instance

**URL:** <https://tech-community.robotics.abb.com/t/for-each-object-of-instance/12040>\
**Category:** AppStudio\
**Tags:** instance, objects\
**Created:** [October 2, 2025, 9:49am UTC](https://tech-community.robotics.abb.com/t/for-each-object-of-instance/12040 "2025-10-02T09:49:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorge](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@Jorge](https://tech-community.robotics.abb.com/u/Jorge)\
**Post date:** [October 2, 2025, 9:49am UTC](https://tech-community.robotics.abb.com/t/for-each-object-of-instance/12040/1 "2025-10-02T09:49:48Z")

</div>

Hello, with Instance I can do this according to documentation,.

```auto

# 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

---

<div class="post-metadata">

**Author:** ![Jorge](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@Jorge](https://tech-community.robotics.abb.com/u/Jorge)\
**Post date:** [October 2, 2025, 2:13pm UTC](https://tech-community.robotics.abb.com/t/for-each-object-of-instance/12040/2 "2025-10-02T14:13:50Z")

</div>

Hi, I found the soluttion.  
Instance[“Select\_1”]
