Wish [SOLVED] Make linter warn if we're initializing a view that's in a layout

Sandman

Expert
Licensed User
Longtime User
This thread came up:

I've seen the like of it a couple of times before, and I am certain I also made this mistake when I started coding in B4X. So if it's possible, perhaps add a warning/error in the linter saying that one shouldn't initialize a view that's part of a layout.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
1:
1628234744065.png


2:

1628234768440.png
 

Sandman

Expert
Licensed User
Longtime User
Yep, seems good enough really. (Didn't stop me from making the mistake when I started using B4X though. :) )
 
Top