Wish Some compiler expansions

Cadenzo

Active Member
Licensed User
Longtime User
B4X:
myNumber += 1 '--> myNumber = myNumber + 1

With MyB4XProject 'Class or Type
   .Counter += 1 '--> MyB4XProject.Counter = MyB4XProject.Counter + 1
   .Note = "Would be nice!"  '--> MyB4XProject.Note = "Would be nice!"
     
EndWith


'here could be a comiler warning, because on VB.NET, if false, nothing in this line is executed, but in B4X starting with DoSecond!'
If whatever = True Then DoFirst : DoSecond : DoThird
 

Jorge M A

Well-Known Member
Licensed User
Longtime User
Consider using With / End With can speed things up but it does make the code harder to debug as you can't quickly add watch expressions into the Watch Window.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…