A few Problems For My School project (1st year industrial engineering)

Hello, I have some questions

I want to make a truth por dare game but without spinning a bottle. So you fill in the namen and when you press GO it chooses one name, 1) FIRST PROBLEM: When you play it with less than 10 ppl you have to leave some textboxes blank but when it generates a number it also generates if there is nothing filled in and then the result can be nothing. 2) SECOND PROBLEM When I go back all the names are gone. How can I keep the names? 3) HOW CAN I MAKE THE BUTTEN “RUN AGAIN” WORK.

Thank You!!!!!

Welcome Matteo

Write code to use only as many of your TextBoxes that are active. Programming Your App to Make Decisions should help you.

Save them (the names) to a TinyDB as a List on a single tag or as individual tags.. Repopulate the TextBoxes by reading your TinyDB entries (tags) in your Screen1.Initialize event handler when you either switch screens or turn your app off.

Re initialize your global variables in your Button event handler. Set all the TextBoxes to an empty value perhaps

Here are some resources to help you learn to use the AI2 tools. 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 look here App inventor español. Offline. Tutorial. Ejemplos. Instalación. Códigos. Juegos. Curso gratis de App inventor. and here Tutorial Index | imagnity for more tutorials.

Learn about components Component Reference
and visit the Library The MIT App Inventor Library: Documentation & Support Help>Library on the MENU

Try some code. If you have difficult, show what you tried and someone will be glad to provide specific advise. Work on a single issue at a time. Good luck.

A ListView is the best for this problem, compared to a fixed number of text boxes.

You only need one text box, for entry of new names, one at a time.

Thank you a lot but i have another question, i turned it into a list and it shows up again but it show up with like parentheses and stuff and when it show up on screen 1 again the parentheses are still there how do i make this disappear ?

Thank You

Thank you really helpful!!