Hello Community,
in the documentation B4X Basic Language / 3.5.1 Scope Process Variables it says
In module B4XMainPage I use
In module B4XImprint I tried
In the Logs I see
I read several search results from the forum but did not get it resolved.
What did I miss?
Best regards
--Christian
in the documentation B4X Basic Language / 3.5.1 Scope Process Variables it says
To access process global variables in other modules than the module where they were declared their
names must have the module name they were declared as a prefix.
In module B4XMainPage I use
B4X:
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
Public MyLanguage As String
End Sub
In module B4XImprint I tried
B4X:
If B4XMainPage.MyLanguage = "de" Then
Log("Juhu")
End If
In the Logs I see
B4X:
B4XImprintPage - <line number>: Undeclared variable 'b4xmainpage' is used before it was assigned any value.
I read several search results from the forum but did not get it resolved.
What did I miss?
Best regards
--Christian