End, quit, close

Just starting out? Need help? Post your questions and find answers here.
mdp
Posts: 31
Joined: Fri Oct 06, 2017 10:37 am

End, quit, close

Post 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.).
falsam
Posts: 280
Joined: Mon May 05, 2014 9:49 pm
Location: France
Contact:

Re: End, quit, close

Post by falsam »

mdp wrote:Is there a way to quit and close the program?
Web App ? Apk ?

➽ Windows 11 - JDK 1.8 - SB 2.40 - Android 13
http://falsam.com

Sorry for my poor english
falsam
Posts: 280
Joined: Mon May 05, 2014 9:49 pm
Location: France
Contact:

Re: End, quit, close

Post 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

➽ Windows 11 - JDK 1.8 - SB 2.40 - Android 13
http://falsam.com

Sorry for my poor english
mdp
Posts: 31
Joined: Fri Oct 06, 2017 10:37 am

Re: End, quit, close

Post 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.
Fred
Site Admin
Posts: 1506
Joined: Mon Feb 24, 2014 10:51 am

Re: End, quit, close

Post by Fred »

For mobile app, you can try:

Code: Select all

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