Skip to first unread message

Developer

unread,
Mar 20, 2019, 8:27:34 PM3/20/19
to MIT App Inventor Forum
Hi guys in my application, if specific buttons are clicked, then specific horizontal tabs will open. I am trying to use abstraction in this process to make sure that when one horizontal tab is visible, all the other horizontal tabs are not visible. I have written a procedure to that and I have also implemented that procedure into one of the buttons. While I try running the program, I get an error saying "Property setter was expecting a com.google.appinventor.components.runtime.Button component but got a YailList instead." I am stuck on this issue. Can someone tell me how to fix this and what is going on? I have attached image of the code. Please feel free to tell me the issue. Thank you!!
Screen Shot 2019-03-20 at 8.23.21 PM.png

TimAI2

unread,
Mar 20, 2019, 9:38:27 PM3/20/19
to MIT App Inventor Forum
Have a look at this:
It may give you some ideas

ABG

unread,
Mar 21, 2019, 3:16:06 PM3/21/19
to MIT App Inventor Forum
Your procedure to close multiple tabs lacks a 
for each tab in list otherTabs block
(use it instead of that IF test), and you
need to make the current loop variable tab invisible
, not the list.

A list is illegal input to a block that expects a single component.

ABG

Screen Shot 2019-03-20 at 8.23.21 PM.png

ABG

unread,
Mar 21, 2019, 3:19:18 PM3/21/19
to MIT App Inventor Forum
Reply all
Reply to author
Forward
0 new messages