Hello,
I'm trying to display a message to indicate the computer is "working" before a 20 second calculation starts. Here is my sub:
CallSubDelayed isn't waiting for the btn text to change to "Working...".
I've also tried:
but no go. How do I get the program to wait for the gui to update before going to that sub?
I've tried the threading library and it breaks in debug mode (which I use almost exclusively).
I'm trying to display a message to indicate the computer is "working" before a 20 second calculation starts. Here is my sub:
B4X:
Sub btn_Rolling_Apply_0_Action
btn_Rolling_Apply(0).Text = "Working..."
CallSubDelayed(Me, Rolling_Average(0))
End Sub
CallSubDelayed isn't waiting for the btn text to change to "Working...".
I've also tried:
B4X:
Sub btn_Rolling_Apply_0_Action
btn_Rolling_Apply(0).Text = "Working..."
Do Until btn_Rolling_Apply(0).Text = "Working..."
Loop
CallSubDelayed(Me, Rolling_Average(0))
End Sub
but no go. How do I get the program to wait for the gui to update before going to that sub?
I've tried the threading library and it breaks in debug mode (which I use almost exclusively).