ilan Expert Licensed User Longtime User Nov 26, 2019 #1 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
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 Nov 26, 2019 #2 To my knowledge, the IDE can't do that - you need to do it manually or with an app like yours.
ilan Expert Licensed User Longtime User Nov 26, 2019 #3 JohnC said: To my knowledge, the IDE can't do that - you need to do it manually or with an app like yours. Click to expand... would be nice if the IDE would have such function
JohnC said: To my knowledge, the IDE can't do that - you need to do it manually or with an app like yours. Click to expand... would be nice if the IDE would have such function
Erel B4X founder Staff member Licensed User Longtime User Nov 27, 2019 #4 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.
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.
LucaMs Expert Licensed User Longtime User Nov 27, 2019 #5 ilan said: if i have large projects and a lot of variables + views the Process_Globals Click to expand... As you know, Views must be declared in Globals. ilan said: i know i can put it inside #Region/End Region but Click to expand... ... but if you used the Regions, you would risk finding immediately what you are looking for Code: 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
ilan said: if i have large projects and a lot of variables + views the Process_Globals Click to expand... As you know, Views must be declared in Globals. ilan said: i know i can put it inside #Region/End Region but Click to expand... ... but if you used the Regions, you would risk finding immediately what you are looking for Code: 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
ilan Expert Licensed User Longtime User Nov 27, 2019 #6 LucaMs said: Also, you don't deserve special tools, since you give your variables horrible names Click to expand...
LucaMs said: Also, you don't deserve special tools, since you give your variables horrible names Click to expand...
ilan Expert Licensed User Longtime User Nov 27, 2019 #7 Erel said: 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. Click to expand... I am sure u r right but it is hard to change coding style. I will try, thanx
Erel said: 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. Click to expand... I am sure u r right but it is hard to change coding style. I will try, thanx