I'm sorry, but perhaps there is still a problem ...
In this simple code by pressing 'Back' the onBack function is executed (show pop-up) and then regularly return control to the Do ... Loop cycle,
but if, with a tap, I open list and press 'Back' the program crashes (freezes) why?
I wish the control still return to the Do ... Loop cycle, but can not find a solution.
Dim menulist$(2) = "First", "Second", "Exit"
Print FormatTime$(Time(), "hh:mm:ss")
TouchEvent action, idx, x, y, 1000
If action = 0 Then
List menulist$(), choose$
If choose$ = "Exit" Then Exit Do
Popup "onBack subroutine"