Android Question What is the equivilent of '+=' ?

trueboss323

Active Member
Licensed User
Longtime User
Hi , sorry for such a newbish question. I would like to know what is the equilivent for '+=' ?
For example, I have a button that has the label '1' , so everytime I click it, it would be something like:
B4X:
Button1.Text += 1
 

trueboss323

Active Member
Licensed User
Longtime User
There is no such operator in B4A.
You will need to write:
B4X:
Button1.Text = Button1.Text + 1

Thanks! I tried your code. The only problem is, when I click it, it displays the number with decimals like "2.0 , 3.0, 4.0, etc" is there anyway to make it so it's only displays "2,3,4, etc" ?
 
Upvote 0
Top