Toky Olivier Active Member Licensed User Longtime User Jun 15, 2020 #1 Hello, Just wonder if the ShowAndWait sub uses Wait For keyword internally? (May be not because ShowAndWait existed since 2014). I see in the thread https://www.b4x.com/android/forum/threads/modal-dialogs.34656/ that the manner used to get returned value is quite different. Thank you
Hello, Just wonder if the ShowAndWait sub uses Wait For keyword internally? (May be not because ShowAndWait existed since 2014). I see in the thread https://www.b4x.com/android/forum/threads/modal-dialogs.34656/ that the manner used to get returned value is quite different. Thank you
Erel B4X founder Staff member Licensed User Longtime User Jun 15, 2020 #2 Moved to the questions forum. There is no such thing as "uses Wait For internally". Calling Wait For in an internal method will never block the calling code. I wouldn't use Form.ShowAndWait as it actually starts a nested event loop. Upvote 0
Moved to the questions forum. There is no such thing as "uses Wait For internally". Calling Wait For in an internal method will never block the calling code. I wouldn't use Form.ShowAndWait as it actually starts a nested event loop.
Toky Olivier Active Member Licensed User Longtime User Jun 15, 2020 #3 Erel said: Moved to the questions forum. Click to expand... Sorry. Erel said: I wouldn't use Form.ShowAndWait as it actually starts a nested event loop. Click to expand... That's why I asked the question. Okay, thank you. Upvote 0
Erel said: Moved to the questions forum. Click to expand... Sorry. Erel said: I wouldn't use Form.ShowAndWait as it actually starts a nested event loop. Click to expand... That's why I asked the question. Okay, thank you.