G Gavin O'Connor Member Licensed User Dec 6, 2017 #1 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
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
NJDude Expert Licensed User Longtime User Dec 6, 2017 #2 That is because you are re-DIMing the mycount variable, place it in Globals. Upvote 0