Hi, having an issue; that's seems so obvious, yet I can`t see my error.
I have declared a public variable in 'B4xMainPage'
When I try to access 'ques_level' on B4Xpage 'win_page' using:
I am not getting the most recent value of the variable, I`m only getting the first value I set in (in 'B4xMainPage')...e.g. at first I set to 3, and I get 3 on the other page; but when I then change it t 2 on 'B4XMainPage' I still only get 3 on 'win_page'?
Would appreciate someone pointing out my stupidity, please
Thanks, James
I have declared a public variable in 'B4xMainPage'
B4X:
Sub Class_Globals
Private Root As B4XView
Private xui As XUI
Public ques_level As Int = 0
When I try to access 'ques_level' on B4Xpage 'win_page' using:
B4X:
private Sub B4XPage_appear
Log(MP.ques_level)
I am not getting the most recent value of the variable, I`m only getting the first value I set in (in 'B4xMainPage')...e.g. at first I set to 3, and I get 3 on the other page; but when I then change it t 2 on 'B4XMainPage' I still only get 3 on 'win_page'?
Would appreciate someone pointing out my stupidity, please
Thanks, James