B bijou Member Licensed User Apr 30, 2017 #1 Hi When i declare a variable in a process global of my activity, an int variable or timer or mediaplayer, they are not valid for the whole program as it should be, but i have to define them again in each activity, is it normal ?! Code: #Region Activity Attributes #FullScreen: true #IncludeTitle: True #End Region Sub Process_Globals Dim MediaPlayer1 As MediaPlayer Dim timer1 As Timer if not syntax error undeclared variable media player1 used before ...
Hi When i declare a variable in a process global of my activity, an int variable or timer or mediaplayer, they are not valid for the whole program as it should be, but i have to define them again in each activity, is it normal ?! Code: #Region Activity Attributes #FullScreen: true #IncludeTitle: True #End Region Sub Process_Globals Dim MediaPlayer1 As MediaPlayer Dim timer1 As Timer if not syntax error undeclared variable media player1 used before ...
Erel B4X founder Staff member Licensed User Longtime User Apr 30, 2017 #2 You can access public variables of other modules with: Code: Main.MediaPlayer1.Play However it is better to move these variables to the Starter service. Upvote 0
You can access public variables of other modules with: Code: Main.MediaPlayer1.Play However it is better to move these variables to the Starter service.