From WikiChip
Difference between revisions of "mirc/identifiers/$error"
< mirc‎ | identifiers

m
m
Line 1: Line 1:
The '''$error''' identifier is filled with any errors that occur during a script's execution. This error can be fetched by writing in a goto point named ''':error''', which, when an error occurs, a script will automatically look for.
+
The '''$error''' identifier is used to catch errors in a script's execution. When an error occurs, mIRC looks for any goto point named ''':error''' and continues executing. '''$error''' is then filled with the current error, and can be used to determine what went wrong with the script.
  
 
== Synopsis ==
 
== Synopsis ==

Revision as of 14:08, 23 July 2014

The $error identifier is used to catch errors in a script's execution. When an error occurs, mIRC looks for any goto point named :error and continues executing. $error is then filled with the current error, and can be used to determine what went wrong with the script.

Synopsis

$error

Example

See /reseterror

Compatibility

Added: mIRC v6.14
Added on: 03 Mar 2004
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.

See Also

/reseterror


[Expand]
v · d · e mIRC identifier list