Android Question Click to add button

Izmirov.Yaminovich

Member
Licensed User
Longtime User
Hi,

I was trying to do a click to add button where it is like a tracker kind of app which allows you to keep track of your counts. Any idea how to do so. I got a button and a label to show the number.

Thanks
 

mangojack

Expert
Licensed User
Longtime User
Maybe I misunderstand ?

Create Process Global varIable .. Dim myCount AS INT
B4X:
 Sub Button_Click
   myCount = myCount +1
   Label.Text = myCount
End Sub

Depending on your needs .. write value of myCount to file for retrieval on next app start.
 
Upvote 0
Top