Hi masters. is there any way to cancel or exit a loop when a user pressed the back button. Hope someone can help. Thanks.
DoEvents inside the loop
You should never block the main thread in a loop. It will only cause problems.
Possible but
Yes, I read that answer.
This means that we should publish a Wish:
"remove all kinds of loops from B4A"
No, it means that the Developer shouldn't place a potentially blocking loop in their main activity
That is not correct. DoEvents only handles (some) graphic related messages.