Android Question Callsub2 from a service with B4xpages

james_sgp

Active Member
Licensed User
Longtime User
Hi, i`m stuck on figuring out how to call a Sub on my B4xmainpage from a running service (i`m running FCM)? Any advice would be appreciated...

Thanks, James
 

toby

Well-Known Member
Licensed User
Longtime User
1. Create a public Sub in MainPage:
Create a public Sub in MainPage:
Public Sub TestSub
    log("entering MainPage.TestSub")
End Sub
2. Call TestSub from a service or another page:
Call the TestSub from a service or any other page:
B4XPages.MainPage.TestSub
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…