Wish Process_Globals shrink function

ilan

Expert
Licensed User
Longtime User
hi,

if i have large projects and a lot of variables + views the Process_Globals section starts getting very large. i know i can put it inside #Region/End Region but i would like to see all variables and views and not each in a single line. is this already possible with b4x IDE?
i made a simple tool but that tool does not cover all scenarios. (short video below explains what i mean)

thanx

 

JohnC

Expert
Licensed User
Longtime User
To my knowledge, the IDE can't do that - you need to do it manually or with an app like yours.
 

LucaMs

Expert
Licensed User
Longtime User
if i have large projects and a lot of variables + views the Process_Globals
As you know, Views must be declared in Globals.

i know i can put it inside #Region/End Region but
... but if you used the Regions, you would risk finding immediately what you are looking for :confused:
B4X:
Sub Globals

#Region VIEWS 
#End Region

#Region GUI vars
#End Region

#Region ACCOUNTING
#End Region

'...


Also, you don't deserve special tools, since you give your variables horrible names :p
 

ilan

Expert
Licensed User
Longtime User
If you have so many global variables then there is a good chance that a better solution will be to refactor the code and split the large module to several classes.

I am sure u r right but it is hard to change coding style. I will try, thanx
 
Top