If your problem is how to read values from an input field, calculate something, and start a new screen with a value to display, then do the tutorials and you will find answers. If not, how what you tried, with a screenshot of your blocks.
If you question is, how can I use an arbitrary formula that the user types in, that is not really possible in AI. If you are an advanced AI user, you could try JavaScript with the eval() function.
Here is probably what you want to do:
The Math blocks are described here: http://appinventor.mit. edu/explore/ai2/support/ blocks/math.html
and how to use them is here: http://www.appinventor.org/ Chapter16
Why put the result on another screen? Yes, that can be done. Search the forum using the Search for topics box to the right of the colorful google at the top of this page with terms like screen manager or changing screens.
see also Scott's calculator project here
Thanks. This is the solution i want. Thanks
Thanks. This is the solution i want. Thanks
댓글 없음:
댓글 쓰기