B4J Question Module variable?

MathiasM

Active Member
Licensed User
Hello

I have a stupid question, but I cannot find a straight anwser with the search function on the forum:
Is it possible to declare module variables that are only visible within that module, so not via Process_Globals?

I tried sub names as Globals, Module_Globals etc, but those do not seem to exist.

Thanks a lot for any guidance!
 

MarkusR

Well-Known Member
Licensed User
visible is only CodeModule.PublicThing here

B4X:
'Static code module
Sub Process_Globals
    Private fx As JFX
    
    Private PrivateThing As Int
    Public PublicThing As Int
    
End Sub
 
Upvote 0
Top