User Tools

Site Tools


en:throwerror

ThrowError (Statement)

Format

throwerror int_expr
throwerror ( int_expr )

Description

Cause a runtime error to occour. These errors may be trapped with the Onerror statement.

Example

onerror errortrap
print "before error"
throwerror 99
print "after error"
end

errortrap:
print "error " + lasterror + " happened"
return

will display

before error
error 99 happened
after error

See Also

History

0.9.6.75New To Version
1.99.99.33Removed the ability to use a subroutine in an onerror trap.
en/throwerror.txt · Last modified: 2020/02/28 10:46 (external edit)