Android Question B4XPages , How we can read or set variables on other pages?

omarruben

Active Member
Licensed User
Longtime User
of course I did a try before asking , but is not working, I read a lot and the only solution looks like put a variable on the B4xMainPage.. but my question is different and i got no usable answer

B4X:
B4XPages.detailsticket.idticket = temp  ----> not working
 
Upvote 0

William Lancee

Well-Known Member
Licensed User
Longtime User
B4X:
        Dim pg As myPages = B4XPages.GetPage("page1")
        pg.XXX = 999

or in your case. probably...

B4X:
Dim pg as detailsticket = B4XPages.getPage("detailsticket")
pg.idticket = temp
 
Last edited:
Upvote 0
Top