Error CLEAR - < me_error_clear > ... [Pro]
Error CLEAR |
||||||||||||||||||||||||||
Errors that occur are saved in _vErr system variable. This variable can be used to check whether a macro command failed or not. This command clears the variable. |
||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
Example (Macro Steps):
|
||||||||||||||||||||||||||
|
Example (Plain Text):
<#> This macro shows how to use 'me_error_nodisplay' and 'me_error_clear'
<cmds>
<me_error_nodisplay>
<#> Try to get file size of non-existing file. Error
<#> occurs but default (automatic) error message is replaced by the user defined one.
<fileinfo>("c:\notexistingfile.none","SIZE","v1")
<if_str>("_vErr != NO")
<msg>(-100,-100,"Error! This is custom error message. The automatic error message was disabled by 'me_err_nodisplay' command.","Message",1)
<endif><#>
<me_error_clear><#>
<if_str>("%_vErr%== NO")<#>
<msg>(-100,-100,"Error was cleared.","Message",1,0,0,0)<#>
<endif>