To properly display this page you need a browser with JavaScript support.
HTBasic Help
×
Menu
Index
Search
Search
Reference
HTBasic Keywords
CAUSE ERROR - Simulates a specified error.
Previous page
Next page
Print version
(c) TransEra Corp, 2021
To properly display this page you need a browser with JavaScript support.
CAUSE ERROR
Simulates a specified error.
CAUSE ERROR error-number
Usage:
CAUSE ERROR Err
IF Testing THEN CAUSE ERROR 80
Example:
CAUSE ERROR.BAS
Description:
When the statement is executed, it is as though the error specified actually occurred and the normal error related functions are affected:
ERRL
,
ERRLN
,
ERRM$
and
ERRN
.
CAUSE ERROR
is useful in debugging error handlers.
See Also:
CLEAR ERROR
,
ERRL
,
ERRLN
,
ERRM$
,
ERRN
,
ERROR RETURN
,
ERROR SUBEXIT
,
OFF ERROR
,
ON ERROR