Call a Sub that will be the real begin of your app.
Sub Process_Globals
End Sub
Sub AppStart (Args() As String)
StartWait
StartMessageLoop
End Sub
Private Sub StartWait
Prb
Log("after Prb 1")
Wait For Prb_Complete
Log("after Prb 2")
End Sub
Private Sub Prb
Log("from Prb 1")
Sleep(1000)
Log("from Prb 2")
CallSubDelayed(Me, "Prb_Complete")
End Sub
Thank, you, very much! I try this, its works and I understand the asynchronical programming in B4J. It is far more simple and logically clear than in Python, I like it!
P.S. I put StopMessageLoop at the end of the StartWait Sub, because, in otherwise, the IDE after the program end shown message something that the loop ends without start, but now all works just fine.