Welche Art Prozedur ist hier sinnvoller

Welche der beiden Varianten (links oder rechts) ist vorzuziehen?

See this page for the reasons to define a procedure.

I copied it here to allow retranslation.

Without clear purposeful names on those variables and the procedures, there is no basis to choose either of your two options.

always use input parameter to pass values to a procedure
do not modify global varuiables inside a procedure...
it might help to learn a bit more about how to use procedures... there is a chapter in the book... see below...

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook http://www.appinventor.org/book2 ... 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 http://www.appinventor.org/content/CourseInABox/Intro and the aia files for the projects in the book are here: http://www.appinventor.org/bookFiles
How to do a lot of basic things with App Inventor are described here: http://www.appinventor.org/content/howDoYou/eventHandling .

Also do the tutorials http://appinventor.mit.edu/explore/ai2/tutorials.html 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.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.