Android Question B4XPages - directly call public methods

Robert Valentino

Well-Known Member
Licensed User
Longtime User
Points 5, 6 & 7 of this post: https://www.b4x.com/android/forum/threads/b4x-b4xpages-what-exactly-does-it-solve.119078/
B4X:
We can directly call public methods of other pages. No need to use CallSub or CallSubDelayed.
We can directly access public global variables of other pages.
We can directly access and manipulate views of other pages.

I know I am a bad searcher (probably being 70 and mind going to mush), but I cannot find any examples of this.

if I use
B4X:
B4XPages.
I don't see any of the public's in B4XMainPage and if I try and use
B4X:
B4XMainPage.
isn't allowed

Confused on how to see the public variables in B4XMainPage and how to call methods without using CallSub or CallSubDelayed.

Thanks

BobVal
 

Robert Valentino

Well-Known Member
Licensed User
Longtime User
Thanks so much

Just tried this in one of my pages and B4XPages seems to be null

I can use B4XPages.MainPage. to get to any variable or class. But when the code actually runs B4XPages appears to be null
 
Last edited:
Upvote 0
Top