Good basic tutorial. One modification I made was to make a logical operator on divide since you cannot divide by 0. btnDiv.Click IfElse test txtNum2.Text not= number 0 ...txtResult.Text = txtNum1.Text / txtNum2.text else-do ...txtResult.Text = text "Cannot divide by 0!"
it would be awesome if you made some complex math apps, I am not sure whether app inventor supports integretion or derivation, but it would be great if it does. thank you Davin for the upload.
That is a way to do it however the defacto way of doing it is to display "Cannot divide by zero". In fact if you use Windows Calculator you will see that is exactly what it does. Either way it needs to be caught and that is the most important thing.
If you allow AppInventor to perform division by zero the result will be displayed as an infinity symbol. My preference would be to catch the attempt and display "Undefined" in the Results text box.
but i have a question how will the computer know the answer i thought this is what we are suppose to do link for screenshot : file:///home/subhas/Pictures/Screenshot%20from%202020-09-24%2019-22-55.png
Good basic tutorial. One modification I made was to make a logical operator on divide since you cannot divide by 0.
btnDiv.Click
IfElse test txtNum2.Text not= number 0
...txtResult.Text = txtNum1.Text / txtNum2.text
else-do
...txtResult.Text = text "Cannot divide by 0!"
Good tutorial bro..
Thank you so much mate, I've created a RC car gear chart using your video! Cheers!!
it would be awesome if you made some complex math apps, I am not sure whether app inventor supports integretion or derivation, but it would be great if it does. thank you Davin for the upload.
That is a way to do it however the defacto way of doing it is to display "Cannot divide by zero". In fact if you use Windows Calculator you will see that is exactly what it does. Either way it needs to be caught and that is the most important thing.
If you allow AppInventor to perform division by zero the result will be displayed as an infinity symbol. My preference would be to catch the attempt and display "Undefined" in the Results text box.
Great ! keep it up please
I would love to see the same tutorial on the app inventor 2. I´m having difficulties with that.
Thanks Dude
I did it with Mit app inventor 2
in emulator my programe works fine but in my mobile it says bad arguments. Just i wrote 6*5 and it saj bad arguments * 6 5
How do I get the text box to except multiple numbers from the user, without having to use 30 boxes?
but i have a question how will the computer know the answer i thought this is what we are suppose to do link for screenshot : file:///home/subhas/Pictures/Screenshot%20from%202020-09-24%2019-22-55.png
Where can I find the screen 1.Intialize?
how can I make it so that when i fill only one textbox and press the plus it doesnt give me an error message?
set when the textbox is empty , fill it whit " 0 ".
How do I add 30 text boxes onto a sum for a score sheet??
Why I can not find My Blocks ?
Quá Bình THường@@
gavura like yok falan asd