Bad arguments to +: the operation + cannot accept the arguments: ,[""], [3]

hello, im trying to do a who famous person am i quiz. So I did this thing with adding to a variable the same number for each asnwer you choose that belongs to that famous person. This works great, but when I compile the apk, in some screens I get this error. I dont know what to do. I'll link some screenshots of the code, specifically where I get this message.


This last picture belongs to the first screen. The first picture is the first screen where i get the message. Regardless of the errors i get, the program works perfectly fine. But I have to present this app and I dont want to get in trouble
I didnt add it but on the 2nd screen (the first one is just introduction), i define "resultados" as 0, so idk where the problem is actually.
If someone needs it, I can pass down the aia file

Don't use start value in math if it's not a number.

TinyDB is the only way to pass multiple counters across screens.

Use tags matching your global variable names, and be sure to use number 0 as the TinyDB not found default.

Using TinyDB right, you don't need those global variables.

But im using start value to save a number. I dont understand where the error is coming from then

You did not send any starting value from screen one. please use this block

You can pass only one value or a list, which can have several items/values

Read agsin @ABG 's answer

Taifun

no! I have used it. But I didn't show it bc its too many screens. But i've been passing the value since screen 2, where it stsrts as 0. I'll try to start it since screen 1 too. I dont think its going to make a change anyways, in screen 1 nothing happens so

The value im passing down on the variables is the same. Im sorry i don't understand the mistake, i dont have anyone to talk about this. What should I do? The TinyDb doesn't work for what I intend to do. Besides, this error only appears in certain screens, in the rest (where the code is the same) it doesnt happen

I could pass you the aia file so ypu can understand better what happens behind. English not my first language so i explain very badly lol

I did not see where you use it.


The error tells you that the screen get empty starting value.

Also try to accept starting value in the screen initializing event not outside.

I edited my previous answer where I tell you where I used it. It's true that it could be one of the issues, even though in the first screen nothing happens and it's just an introduction. On the following screens, I always use the start value on thw initializing screen and to define the variables.
However i'll try it out. I can send you the file if you want to check it out

Send your .aia file here

export_and_upload_aia

Here you have
multitablas.aia (4.9 MB)

This post was flagged by the community and is temporarily hidden.

http://ai2.appinventor.mit.edu/reference/other/manyscreens.html

1 Like

i did not see any of Bad arguments to +: the operation + cannot accept the arguments: ,[“”], [3] issue. but the main problem i see here is your screen management, please try to use virtual screen instead of multiple screen, those whole thing you do can be done on single screen.

1 Like

Thank you! Thats probably the issue.

Thank you!