LassoScript Utility
Basics Browse Detail

[Error_Reset]

Tag Link [Error_Reset] Category Error
Type Process Source Available Yes
Support Preferred Version 8.5.2
Change New Data Source Any
Output Type None Security None
Implementation LassoScript Sets Lasso 8.5

Description

[Error_Reset] simply sets the current error code to 0 and the current error message to empty. The current error code and error message can be inspected with the [Error_Code] and [Error_Msg] tags.

Syntax

[Error_Reset]

Parameters

No Parameters Required.

Change Notes

This tag was added in Lasso 8.5.2.

Examples

To reset the error code each time through a loop:

The following code uses [Error_Reset] to reset the error code each time through a loop. This prevents an error from one repetition from bleeding through into the next repetition.

[Loop: 10]
[Error_Reset]
... Code which might set an error ...
[/Loop]