MaFu Well-Known Member Licensed User Longtime User Oct 25, 2013 #1 If i create a library with B4A (Project -> Compile To Library), in all library modules Process_Globals is visible. How can i avoid this? The "Private" modifier (Private Sub Process_Globals) are accepted but doesn't work.
If i create a library with B4A (Project -> Compile To Library), in all library modules Process_Globals is visible. How can i avoid this? The "Private" modifier (Private Sub Process_Globals) are accepted but doesn't work.
somed3v3loper Well-Known Member Licensed User Longtime User Oct 25, 2013 #2 Why do not you use private at variables declaration for variables you want to hide? Private somevariable as sometype Upvote 0
Why do not you use private at variables declaration for variables you want to hide? Private somevariable as sometype
MaFu Well-Known Member Licensed User Longtime User Oct 25, 2013 #3 I have no variables in Process_Globals yet. I want to hide the sub Process_Globals itself, because it's visible at code completion. And B4A doesn't compile without this sub. Upvote 0
I have no variables in Process_Globals yet. I want to hide the sub Process_Globals itself, because it's visible at code completion. And B4A doesn't compile without this sub.
Erel B4X founder Staff member Licensed User Longtime User Oct 27, 2013 #4 Moved to the questions forum. The process globals sub must be public as it is called when the program starts. You cannot hide it. Upvote 0
Moved to the questions forum. The process globals sub must be public as it is called when the program starts. You cannot hide it.