SetOnBackButtonSub onBack()

Sets the on back button subroutine. Once set, the specified onBack() subroutine will be automatically called when the back button is pressed. The subroutine name onBack() may be changed to your own name.

When this event sub is active the normal operation of the back button is overridden and the program will not exit until instructed to do so.

Sub onBack()

' Insert your code here

End Sub

SetOnBackButtonSub Off

Turns off the automatic subroutine call and the back button will act normally again.

Event Triggered Subs

Become a Patron