Android Question Shorthand Arithmetic operators

noeleon

Member
Licensed User
Are there shorthand arithmetic operators in B4A?
for example to increment the variable x by 1 you would write
x = x + 1 in b4a
but in other languages you can also use
x += 1 and in others
x++
The shorthand is also a lot faster when inside a loop.
 

DonManfred

Expert
Licensed User
I don´t think there will be a lot of improvement in speed.
There are no shorthand operators.
Create a small sub using x= x+y
 
Upvote 0
Top