Android Question Incrementing a Button

Gavin O'Connor

Member
Licensed User
Hi All,

I am trying to increment a button and a label and it seems to be stuck on 1, would anyone be able to advise why?, any help would be greatly appreciated

B4X:
Sub Button1_Click
    
    Dim mycount As Int
    
    mycount = mycount + 1
    
    Label1.Text = mycount
    
    
End Sub
 
Top