sc_error_exit(URL, "Target") or (My_Application, "Target")

Interrupts the application execution, if there is error message generated through "sc_error_message" macro, displaying the error messages. If informed an URL or the name of an Application, an "OK" button is displayed, bellow the error messages to redirect the processing to the informed URL/Application.

The target parameter is opitional.


Ex. 1: Displays only the error messages.
sc_error_exit();


Ex. 2: Display the error messages and the "OK" button to redirect to URL.

sc_error_exit(http://www.mysite.com);


Ex. 3: Display the error messages and the "OK" button to redirect to Application, opening in another window.

sc_error_exit(my_application, "_blank");