Hi guys,
I have this codes
Anyone knows why execution is trap in a Do While Loop on Sub btn_Click?
I have this codes
B4X:
Sub Process_Globals
Dim StTm As Byte
Dim MaxTm As Byte
End Sub
Sub Globals
Private SendPrg As ProgressBar
End Sub
Sub Activity_Create(FirstTime As Boolean)
ProgressTimer.Initialize("ProgressTimer", 1000)
End Sub
Sub btn_Click
MaxTm = 3
StTm = 0
ProgressTimer.Enabled = True
Do While StTm <= MaxTm
Loop
ProgressTimer.Enabled = False
End Sub
Sub ProgressTimer_Tick
StTm = StTm + 1
End Sub