The guest system does not want your app connecting.
Apps sometimes can IGNORE 'error' messages if you use the ErrorOccurred block empty (with no Blocks). In this instance , that probably is not the issue but you can try an empty ErrorOccured
Elsewhere in your code do you use a Format sstatement that the guess system does not like?
You might google bad arguments error code to see if you can find a suitable error number.
Check your blocks for the format as decimal block... how are you using it and what is the first argument in that case? Where does the NA come from?
And check your blochs for the multiplication block... you only can multiply numbers, but not an empty string... see the error message... as you can see, the first argunent is an empty string...
Taifun
Good Morning,
Perhaps the attached block will reveal something to you that I do not grock? This procedure block is called in the course of connecting to WIFI. I think the "2" is the stated number of places but I cannot find a "NA" anywhere. There are no other "format as decimal" blocks outside of specifically called procedures.
Also, can you tell me why the program is identifying an operation as "*"? That is not very helpful. I am searching my code for a random ".24."
It looks like one of these blocks return NA
- this is a multiplication block
So somewhere in your blocks you are multiplying an empty string with 0.24
Use the companion app and Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools
Taifun
Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.
check the value before trying to format as decimal
this is also called data validation
and if the value is NA, then just display "Sorry, value is not available"
Taifun
Right! Thank you so much. Exactly how much coffee do I need to recognize "*" as an operation?!
FOUND IT!!! [Gratuitous self-patting of back - like I was searching someone else's code;]. I laid out a couple of questions on the image because I do not see how the program fails without checkbox 24 being diddled.
Also, does NA mean "not available" or are we speaking about something replicated from my code? It surely isn't reading my "Not Found" labels are interpreting them as "NA." That is bordering on magic thinking.
I guess my real bottom line is to follow the previous advice of setting up an empty error block. It seems simple enough to say that if no WIFI is available, skip this/these block(s), so maybe I will follow down that rabbit hole.
Thanks, again, for pointing out that an asterisk was an operation;).
Greetings,
Thank you for that tutorial on error messages. They make a lot more sense to me now.
Does this look familiar? "Empty Textbox (when used for calculations)"
This is a runtime error possibility you mentioned elsewhere in the AI2 Universe. I went ahead and pre-loaded that text label with "0" because I think it is behaving the same way.