I have to refresh a label, but based on my needs, sleep cannot be used and the timer did not do the job.
B4X:
Sub LongProcess
For x = 1 To 10000000
mylabel.Text = x
'Sleep(0) - cannot be here because sleep = return, and i cannot leave the sub before it ends
'Timer also did not work.
Next
End Sub