2016년 12월 25일 일요일

Making a random list


My goal is when a button is clicked a list will choose a random item and display it. I have made the list. I have made the variable for my global list (to create an empty list). I have made the built in control procedure when the button is clicked, but now my issue is I am not sure how to properly connect the two. From all of the tutorials I have seen, I don't think this was covered. Will anyone be able to assist me? 


--

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

-- 
Screenshot (1).png 표시 중

--
 Unbenannt.JPG

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 AppInventor, then try something and follow the
Top 5 Tips: How to learn App Inventor

You will not find a tutorial, which does exactly what you are looking for. But doing the tutorials (not only reading a little bit) help you to understand, how things are working. This is important and this is the first step to do.

-- 
Thanks! I will try this. I appreciate your help! This seems to be the final few steps I need to finish this project. I will certainly check out your suggestions.

-- 
Just real quick...the "label.text" that was written in...is this something I should read about in the tutorials you mentioned, because I have not found it in any of the built in drawers?

-- 
where do you want to display the result? probably in a label?
see the user interface drawer to find a label component...
I recommend you to start doing the tutorials...

-- 

댓글 없음:

댓글 쓰기