sc_error_exit(URL / My_Application, "Target");

The use of this macro results in the interruption of the application.
This way, any processing that will be executed after the use of the Marco or is being executed at the moment will be interrupted.
Here you can see an example of the macro's use.

This macro should be used after the macro
sc_error_message();

This macro can be used in two ways: Without parameters sc_error_exit(); that just interrupts the application or informing one URL/application that the user will redirect when the error is shown.

Macro's parameter, All the parameters are optional.
Application/URL Optional Destiny application's name or URL to where will be redirected.
Target Optional

_blank, _self

 

When we inform one destiny application or URL and the Target parameter is not informed the _self will be used as default.

Available Targets
_blank Show the destiny application or URL in another window or tab. 
_self Show the destiny application or URL in the same window or tab.

 

Ex. 1: Show only an error message.

sc_error_message('Error message!');
sc_error_exit();


Ex. 2: Show an error message and an "OK" button to redirect to the URL informed.

sc_error_message('Error message');
sc_error_exit(http://www.mysite.com);

Ex. 3: Show an error message and an "OK" button to redirect to the application informed.

sc_error_message('Error message');
sc_error_exit(my_application, "_blank");