Table of Contents

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

2016/01/01 22:42

History

0.9.6.75New To Version
1.99.99.33Removed the ability to use a subroutine in an onerror trap.