|
History |
.............................................................................. ..............................................................................
IF ERROR THEN PRINT "Cannot remove file. "; Error.Text IF ERROR THEN PRINT "Cannot remove file. "; Error.Text
} }
_
{syntax {syntax
*ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;* *ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;*
} }
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
} }
_ _
_
{syntax {syntax
*ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;* *ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;*
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
IF ERROR THEN PRINT "Cannot remove file. "; Error.Text IF ERROR THEN PRINT "Cannot remove file. "; Error.Text
} }
<p> _
_
{syntax {syntax
*ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;* *ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;*
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
IF ERROR THEN PRINT "Cannot remove file. "; Error.Text IF ERROR THEN PRINT "Cannot remove file. "; Error.Text
} }
-- <p>
{syntax {syntax
*ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;* *ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;*
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
Use it just after a [/lang/try] instruction to know if the executed instructio Use it just after a [/lang/try] instruction to know if the executed instructio
To get more information about the error, use the [/comp/gb/error] class. To get more information about the error, use the [/comp/gb/error] [../../def/c
{warning {warning
The error flag is reset to [../false] when: The error flag is reset to [../false] when:
.............................................................................. ..............................................................................
IF ERROR THEN PRINT "Cannot remove file. "; Error.Text IF ERROR THEN PRINT "Cannot remove file. "; Error.Text
} }
--
{syntax {syntax
*ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;* *ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;*
} }
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
*ERROR* AS Boolean *ERROR* AS Boolean
} }
Returns [../true] if an error happened. Returns [../true] if an error has happened.
Use it just after a [/lang/try] instruction to know if the executed instructio Use it just after a [/lang/try] instruction to know if the executed instructio
To get more information about the error, use the [/comp/gb/error] class. To get more information about the error, use the [/comp/gb/error] class.
{warning
The error flag is reset to [../false] when:
* The [../return] instruction is executed.
* A [../try] instruction has been executed without any error.
}
{Example {Example
TRY KILL FileName TRY KILL FileName
IF ERROR THEN PRINT "Cannot remove file. "; Error.Text IF ERROR THEN PRINT "Cannot remove file. "; Error.Text
.............................................................................. ..............................................................................
.............................................................................. ..............................................................................
IF ERROR THEN PRINT "Cannot remove file. "; Error.Text IF ERROR THEN PRINT "Cannot remove file. "; Error.Text
} }
{Seealso
[cat/error]
}
{syntax {syntax
*ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;* *ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;*
} }
.............................................................................. ..............................................................................
See [../print] for more details about the syntax and the behaviour. See [../print] for more details about the syntax and the behaviour.
{seealso {seealso
[../print] [cat/error] [../print]
} }
.............................................................................. ..............................................................................
{Seealso {Seealso
[cat/error] [cat/error]
} }
{syntax
*ERROR* _Expression_ [ { *;* | *;;* | *,* } _Expression_ ... ] [ { *;* | *;;*
}
Prints expressions to the standard error output, exactly like the [../print] i
The standard output can be redirected by the [/lang/errorto] statement.
See [../print] for more details about the syntax and the behaviour.
{seealso
[../print]
}