sc_exit(Option)

This macro can be used in the ScriptCase events and created a button and may return values/processes after the execution.

Option
Description
sc_exit() Returns to the previous application without display anything.
sc_exit(ok) Displays a window with an OK button and returns to the previous application.
sc_exit(sel) Doesn’t display the window with an OK button and returns to the current application, repeat the application select.
sc_exit(ref) It doesn't display the window with an OK button refresh data and returns to the current application.
sc_exit(ok,ref) Same as the sc_exit(ref) function; however, display the OK button.
sc_exit(ok,sel) Same as the sc_exit(sel) function; however, display the OK button.


This option is only valid for Form and Control Applications.

Opton
Description
sc_exit() Doesn't complete transactions in database.
sc_exit(c) Commit pending transactions.
sc_exit(r) Rollback pending transactions.