kanaida Active Member Licensed User Longtime User Dec 20, 2012 #1 I didn't realize just how often I have to do stuff like this: MyVariable = MyVariable + 1 Can we add the other operators so we can save a little bit of writing? I keep writing it this way, then re-writing it to the style above. I guess it's just been hammered into my head when trying to keep code tiny. MyVariable += 1 (adds to itself) or MyVariable -= 1 (subtracts from itself)
I didn't realize just how often I have to do stuff like this: MyVariable = MyVariable + 1 Can we add the other operators so we can save a little bit of writing? I keep writing it this way, then re-writing it to the style above. I guess it's just been hammered into my head when trying to keep code tiny. MyVariable += 1 (adds to itself) or MyVariable -= 1 (subtracts from itself)
S sorex Expert Licensed User Longtime User Dec 21, 2012 #2 that has been requested before in this thread > http://www.b4x.com/forum/bugs-wishlist/23991-my-wishes-future-versions-b4a.html
that has been requested before in this thread > http://www.b4x.com/forum/bugs-wishlist/23991-my-wishes-future-versions-b4a.html
K kickaha Well-Known Member Licensed User Longtime User Dec 21, 2012 #3 ThisRequest +=1 Sorry, couldn't resist
mc73 Well-Known Member Licensed User Longtime User Dec 21, 2012 #4 kickaha said: ThisRequest +=1 Sorry, couldn't resist Click to expand... :sign0142: Anyway, I use this abr too, yet, I find the autoComplete feature very useful lately, also in circumstances like the above.
kickaha said: ThisRequest +=1 Sorry, couldn't resist Click to expand... :sign0142: Anyway, I use this abr too, yet, I find the autoComplete feature very useful lately, also in circumstances like the above.
Vader Well-Known Member Licensed User Longtime User Jan 12, 2013 #5 Whilst on the subject, why not... *= and /=