I'm declaring a global variable as follows:
This var is in my main activity. In my setup activity I am changing the value of this variable. Then I exit the setup activity and resume my main activity however, this variable is 0. I set it to 15 in the setup activity.
From what I read, if I declare a var in the Process_Globals they can be seen in any module. Is this not a true global variable? How do I declare a var that both my main and setup activities can access and change, etc.?
Thanks...
B4X:
Sub Process_Globals
Dim pNightimeIntensity As Int
This var is in my main activity. In my setup activity I am changing the value of this variable. Then I exit the setup activity and resume my main activity however, this variable is 0. I set it to 15 in the setup activity.
From what I read, if I declare a var in the Process_Globals they can be seen in any module. Is this not a true global variable? How do I declare a var that both my main and setup activities can access and change, etc.?
Thanks...