For Each object of Instance

Jorge
Jorge ✭✭
edited October 2 in AppStudio
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
Tagged:

Comments

  • Jorge
    Jorge ✭✭
    Hi, I found the soluttion.
    Instance["Select_1"]

    Jorge Turiel