Page 1 of 1

End, quit, close

Posted: Mon Oct 09, 2017 9:16 pm
by mdp
The `End` command is in the Help index but it is not there.
Is there a way to quit and close the program? For example, in case of critical exceptions (no data file found, etc.).

Re: End, quit, close

Posted: Mon Oct 09, 2017 9:17 pm
by falsam
mdp wrote:Is there a way to quit and close the program?
Web App ? Apk ?

Re: End, quit, close

Posted: Mon Oct 09, 2017 9:23 pm
by falsam
If it is a web application, you can manage the error messages.
Closing a tab is possible, but may not work with some browsers.

With android, an application is never closed. She's in the background.Test this procedure

Code: Select all

Procedure Exit()
  !window.close();
EndProcedure

Re: End, quit, close

Posted: Mon Oct 09, 2017 9:45 pm
by mdp
falsam wrote:With android, an application is never closed.
You mean, in SB? Android does have a "End" command, it's the Activity.finish() method.

Re: End, quit, close

Posted: Tue Oct 10, 2017 7:12 am
by Fred
For mobile app, you can try:

Code: Select all

!navigator.app.exitApp();
I will add it for the 'End' keyword