When executing my application I get the following error: Property getter was expecting a com.google.appinvenor.components.runtime.Button component but got a YaiList instead
The truth is I don't know how to solve it, I had a very good solution to this and I thank you very much, greetings.
Can you post the blocks in this way: Put your mouse on an empty space in the blocks editor, click with your right mouse button and choose download blocks as image from the pop-up menu. Share this image with us. Then, when does the error exactly occur and what is your application trying to do?
To speed things up, you could also post an .aia
These are the blocks and the error is generated when opening the game, since it is a game that deals with a memory where the pairs of images must be found
And I feel the annoyance, but, how do I publish an .aia? I'm a bit of a novice at this.
Thank you very much for your help.
This is a blind guess, since I don't have the .aia file, and I only know English.
You have a Clock Timer set to compare the images of two buttons identified by the contents of two global variables.
Unfortunately, you did not initialize the global variables to point to button components at app startup, and at times during the game one or both of those global variables gets reset to an empty list, so the procedure comprabacion is run without both globals pointing to buttons.
The first thing the procedure comprabacion does is to blindly assume both globals point to buttons, then try to compare the images of probably nonexistent buttons. You must guard this comparison with another comparison, to insure that neither global has empty list in it.
puntodecontroldia06092020.aia (3.1 MB)
The application that I am developing is being thought for a project, which has several sections, but this part of the application is the only one that generates this error, so if you can help me, all you have to do is scroll down and click on the button that says "memogram" and the screen where you configure this section is "Screen 4"
Again I thank you very much for your help, greetings.