User Tools

Site Tools


en:throwerror

ThrowError (Statement)

Format

throwerror int_exprinteger expression
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: 2016/05/23 18:20 by admin