Bug? IDE issue with ':'

MrKim

Well-Known Member
Licensed User
Longtime User
I like to put simple. related code on one line, i.e.
B4X:
InfoLabel.Color = Colors.Blue: InfoLabel.textcolor = Colors.white
The problem is when you insert the colon ( : ) intellisense stops working.
Not a huge deal but if it is a simple fix it would be nice.
 

MrKim

Well-Known Member
Licensed User
Longtime User
(Another) Good reason to write one instruction per line ;)
There are good reasons for doing it. I find, when doing simple assignment statements like the one above it is much more readable if everything for each view is on the same line. Not so much when doing one view, but when doing several...
 

LucaMs

Expert
Licensed User
Longtime User
There are good reasons for doing it. I find, when doing simple assignment statements like the one above it is much more readable if everything for each view is on the same line. Not so much when doing one view, but when doing several...
In some cases, writing two instructions on a single line may be useful and more readable but generally it is better to have one instruction per line, even for software maintenance.
 
Top