ANY COMPONENT PROBLEMS

123 views
Skip to first unread message

lorella grassili

unread,
May 23, 2018, 1:36:57 PM5/23/18
to MIT App Inventor Forum
HALLO ,I HAVE A PROBLEM WITH ANY COMPONENT. I HAVE FOLLOWED A TUTORIAL STEP BY STEP TO LEARN, BUT I HAVE ALWAYS THE FOLLOWING ERROR 
Property setter was expecting a com.google.appinventor.components.runtime.Button component but got a YailList instead.
-End Application-, I 
I CREATED AN APP SIMPLE TO UNDERSTAND BUT THE ERROR IS THE SAME. 

ATTACHED MY SCREEN:

THANKS

SCHERMATA.png

Farzeen Harunani

unread,
May 23, 2018, 2:57:45 PM5/23/18
to MIT App Inventor Forum
Hi,
Please don't type in ALL CAPS as it appears that you are yelling at us. 
You use a for loop, which is correct, but you pass in the list instead of the button in the list. 
Use item instead of global LB within your for loop. 
Farzeen

lorella grassili

unread,
May 24, 2018, 4:24:25 AM5/24/18
to MIT App Inventor Forum
Sorry for ALL CAPs, and thank you for answer. I don t understand what do you means, i m a begginer.
Thanks Thanks thanks

Chris Ward

unread,
May 24, 2018, 8:32:00 AM5/24/18
to MIT App Inventor Forum
Hello lorella

Yes, sometimes a typo is staring you in the face but you just can't see it :)

Like this:


lorella grassili

unread,
May 24, 2018, 12:10:41 PM5/24/18
to MIT App Inventor Forum
Thank you, now it s ok.
Now i ve this problem i have many arrangment , each of which has inside a textbox
i would like table arrangment visible  only those where i enter a number into the textbox.
But remains all visible.
 i m so stupid.
You are very kind , and i thank you for the help
Lorella
schermo2.png

Farzeen Harunani

unread,
May 25, 2018, 10:22:29 AM5/25/18
to MIT App Inventor Forum
You're not stupid by any means! You're learning!

Here's a code snippet to get you started...


Farzeen

lorella grassili

unread,
May 25, 2018, 11:09:33 AM5/25/18
to MIT App Inventor Forum
Thank you now i prove.

Abraham Getzler

unread,
May 25, 2018, 11:30:18 AM5/25/18
to MIT App Inventor Forum
See attached for a general solution
to optional text box visibility

ABG

box2.PNG
hidden blanks.PNG
optional_textBoxes.aia
blocks.png
box1.PNG

lorella grassili

unread,
May 25, 2018, 4:29:59 PM5/25/18
to MIT App Inventor Forum
wow Abraham, you are a genius !! I m already lost myself. But i prove
Reply all
Reply to author
Forward
0 new messages