mmrafiei
Member
MY CODE:
#Region Project Attributes
#ApplicationLabel: BASEproject
#VersionCode: 1
#VersionName:
'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: portrait
#CanInstallToExternalStorage: False
#End Region
#Region Activity Attributes
#FullScreen: False
#IncludeTitle: True
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim Timer1 As Timer
Dim TIMEvalue As Int
End Sub
Sub Globals
'These global variables will be redeclared each time the activity is created.
Private Connect As Button
Private Disconnect As Button
Private AUTO As Button
Private Manual As Button
Private ImageAUTO As ImageView
Private ImageConnect As ImageView
Private ImageDisconnect As ImageView
Private ImageManual As ImageView
Private LabelABOUT As Label
Private CircularProgressBar1 As CircularProgressBar
Private ManualON As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout")
Activity.AddMenuItem("home", "eventHOME")
Activity.AddMenuItem("timer", "eventTEMP")
Activity.AddMenuItem("about", "eventABOUT")
Activity.AddMenuItem("exit", "eventEXIT")
Timer1.Initialize("eventTIMER" , 1000)
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub eventTIMER_Tick
TIMEvalue = TIMEvalue + 1
End Sub
Sub eventHOME_Click
Activity.RemoveAllViews
Activity.LoadLayout("Layout")
End Sub
Sub eventABOUT_Click
Activity.RemoveAllViews
Activity.LoadLayout("Layout3")
LabelABOUT.Text = "POWERED BY ❤️LOVE"
End Sub
Sub eventTIME_Click
Activity.RemoveAllViews
Activity.LoadLayout("Layout2")
CircularProgressBar1.Value = TIMEvalue
End Sub
Private Sub ManualON_Click
Timer1.Enabled = True
End Sub
Sub eventEXIT_Click
End Sub
Private Sub Connect_Click
End Sub
Private Sub Disconnect_Click
End Sub
Private Sub AUTO_Click
End Sub
Private Sub Manual_Click
End Sub
hi,
How can update the global variables automatically.
My code only updates my timer variables once. I want it to be updated automatically
please look at my code and guide me.
LINE 86-99