Lasso Soft Inc. > Home

[ abort ]

Method

[Abort] aborts processing the current thread. All current [handle]s will still be executed. A [protect] block will not stop an abort, but an abort can be halted by calling [abort_clear].

During a web request, the web_request object handles ensuring that all current web content gets sent to the client after an abort is called.

  • Syntax
[Abort]
Examples
  • Beginner

To abort a page if an error occurs:

Use the [Abort] method to immediately stop execution of a page if an error occurs. The following example checks [Error_CurrentError] to see if a 'Catastrophic Error' occured and aborts the page if it did.

Code

if(error_currentError == 'Catastrophic Error')
    abort
/if

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft