Hello,
I'm facing an issue with a timer control.I am using several timers in my program and added a new one to update a progressbar.The code looks similar to this:
In fact the subs are nested two levels more, means the sub1 is called by another sub, which is called by a button event.
The timer never gets fired ! I put in some other code into Timer8_Tick, but it is never called.If i do this:
, the timer is running as expected and executes the code in the Timer8_Tick Sub.I'm confused because i use different timers and never had this problem.
Has anyone an explanation and/or a solution to this...?
regards,
TWELVE
I'm facing an issue with a timer control.I am using several timers in my program and added a new one to update a progressbar.The code looks similar to this:
B4X:
App_start:
ProgressBar.New1
AddTimer("Timer8")
Timer8.Interval = 50
Timer8.Enabled = False
...
Sub Sub1
Timer8.Enabled = true
do something
Timer8.Enabled = false
End Sub
...
Sub Timer8_Tick
Do something with the progressbar
ProgressBar.Value = some value
End Sub
In fact the subs are nested two levels more, means the sub1 is called by another sub, which is called by a button event.
The timer never gets fired ! I put in some other code into Timer8_Tick, but it is never called.If i do this:
B4X:
AddTimer("Timer8")
Timer8.Interval = 50
Timer8.Enabled = True
, the timer is running as expected and executes the code in the Timer8_Tick Sub.I'm confused because i use different timers and never had this problem.
Has anyone an explanation and/or a solution to this...?
regards,
TWELVE