Bonjour
Un nouveau bug destructeur d'application avec le bouton "cancel" du notifier "show text dialog" qui renvoie le texte "cancel" en plus de fermer le notifier.
Cordialement
Bonjour
Un nouveau bug destructeur d'application avec le bouton "cancel" du notifier "show text dialog" qui renvoie le texte "cancel" en plus de fermer le notifier.
Cordialement
Show your blocks
What is the value of obtenir Choix
?
Hello
obtenir choix is "Ajouter" witch means "add" or could be "Annuler" if cancelable.
at first when cancel, "reponse" was "Annuler" witch is bad, it should have no reponse.
but now adding to that, in any case, text input or cancel, it appears and empty space at the beginning and the apply crash because "add items to list cannot accept the arguments empty-string"
it is really very boring
regards
Please switch the language to English before taking a screenshot and post a screenshot of the error message
Did you initialize liste_points_destinations using a create empty list block?
Taifun
Show us how you initialize that global variable
The error message is telling us, that you initialized it using an empty text block
Also please always fill all sockets
Taifun
No
Look at my last screenshot to find an empty socket
It looks like you do not understand, what initializing a global variable means?
http://ai2.appinventor.mit.edu/reference/blocks/variables.html#global
Now read again
You should use a create empty list block
A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook App Inventor 2 Book: Create Your Own Android Apps ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here Course In A Box and the aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps
How to do a lot of basic things with App Inventor are described here: How do you...? .
Also do the tutorials Our Tutorials! to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor
Taifun
Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.
Hello
That what i have done, is it good for you ?
Regards
Hello
I found something thanks to your instructions but there are new problems.
i am working on it.
thank you
regards
Hello
The new app-killing bug with the "cancel" button in the notifier "show text dialog" that returns the text "cancel" in addition to closing the notifier is still active.
Sincerely,
Not sure where your problem is, and how you get two values for the response on pressing Cancel. This is what I generally do, also with the use of downcase to avoid any possible issues with the response.
Sorry i do not understand what you mean.
If cancelable is true and if i press cancel it should not respond anything but it responds "cancel".
so this is a bad response witch is a bad thing for the app.
regards
what exactly prevents you from using those blocks provided by @TIMAI2 to detect, if cancel was pressed?
Taifun
i cannot filter bad response because it depends of system language.
Also this not a good practice.
regards
this is how it is currently implemented
you are welcome to ask for a feature request to improve this
your app is a multi language app? How many languages will be used? Which languages? You could set up some kind of workaround and add the words Cancel of those languages in a list to check, if one of those words has been returned
Taifun
And if you do not like how ShowTextDialog works, as another workaround you could use a textbox together with a button click event...
Taifun
This problems appeared with others in the last version and i would like that it will be improved.
Luckily I noticed it and it will be useful for everybody.
Now i can disable cancelable for a while
regards