ERROR AS Boolean
Returns TRUE if an error has happened.
Use it just after a TRY instruction to know if the executed instructions failed.
To get more information about the error, use the Error class.
![]() | The error flag is reset to FALSE when: |
TRY KILL FileName IF ERROR THEN PRINT "Cannot remove file. "; Error.Text
ERROR Expression [ { ; | ;; | , } Expression ... ] [ { ; | ;; | , } ]
Prints expressions to the standard error output, exactly like the PRINT instruction.
The standard output can be redirected by the ERROR TO statement.
See PRINT for more details about the syntax and the behaviour.