Go Back   Android Forums > Android Development > Application Development > App Inventor
Gamers - Check out our new sister sites!
Nintendo Wii U!    |    OUYA - $99 Android System!

test: Reply
 
LinkBack Thread Tools
Old May 4th, 2012, 03:56 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: May 2012
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Help with list app

Hi!
Iīm new to creating appīs with app inventor (no previous experience at all on creating apps or coding) but think its fun so im going to continue.
And sorry if it already exists a post like this one but couldnt find one.

The problem is that im trying to do a list app - when i click a button the number 1 appear on the list = (1) and when i press the button again another (1) appears after the second and so forth.

The thing im trying to make it do is instead of (1) adding one after another is to ex= if you click three times the number 3 adds etcetc.

So - instead of getting (1 1 1 1 1) for clicking five times on a button im trying to get the number to (5) for clicking the same button five times

Any tips?

DanielSvendsen is offline  
Reply With Quote
Sponsors
Old May 9th, 2012, 09:51 PM   #2 (permalink)
Junior Member
 
Join Date: Mar 2012
Location: Louisiana, USA
Posts: 34
 
Device(s): Asus Eee Transformer
Carrier: Not Provided

Thanks: 1
Thanked 4 Times in 3 Posts
Default

Yes, Daniel, I think I understand what you are trying to do. But I don't think you need a list to do this. You just need a button component, which you mentioned and a label component. Let's say the label is called total. In the screen designer, give it a value of 0. Then in the blocks editor, drag out the buttonname.click block and put the blocks [set total.text to][ [ total.text] + [1] ] inside the click block. That would take 4 blocks.
Each time the button is pressed the label's value is increased by 1.
appinventor is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Application Development > App Inventor
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:05 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.