Hello, how can I execute command from Mon-Sat from 07:00AM till 23:00PM
B4X:
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
Dim lblClock As Label
Dim timClock As Timer
Private Button1 As Button
End Sub
Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("0")
lblClock.TextSize = 40
lblClock.Text = "00:00:00"
DateTime.TimeFormat = "HH:mm:ss"
timClock.Initialize("timClock",1)
timClock.Enabled = True
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub timclock_Tick
'DateTime.TimeFormat = "hh:mm"
lblClock.Text = DateTime.Time(DateTime.Now)
End Sub
Sub Button1_Click
' ?
End Sub