Hello,
I am not able to call a public variable from another B4xPages.
The below is the code which I am calling from another page. :
The variable I declared at MainPage
But I am not able to call cloc from another page.
Please advice
Thanks
I am not able to call a public variable from another B4xPages.
The below is the code which I am calling from another page. :
B4X:
Dim mp As B4XMainPage = B4XPages.GetPage("MainPage")
Log(mp.cloc)
Log(B4XPages.MainPage.cloc)
The variable I declared at MainPage
B4X:
Sub Process_Globals
Public ActionBarHomeClicked As Boolean
Public cloc As String
End Sub
But I am not able to call cloc from another page.
Please advice
Thanks