This shows you the differences between two versions of the page.
en:throwerror [2016/01/01 22:42] 127.0.0.1 external edit |
en:throwerror [2020/02/28 10:46] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== ThrowError (Statement) ===== | ||
- | ==== Format ==== | ||
- | **throwerror** // | ||
- | **throwerror** ( // | ||
- | |||
- | |||
- | ==== Description ==== | ||
- | Cause a runtime error to occour. | ||
- | |||
- | ==== Example ==== | ||
- | |||
- | < | ||
- | onerror errortrap | ||
- | print " | ||
- | throwerror 99 | ||
- | print "after error" | ||
- | end | ||
- | |||
- | subroutine errortrap() | ||
- | print "error " + lasterror + " happened" | ||
- | end subroutine | ||
- | </ | ||
- | will display\\ | ||
- | < | ||
- | before error | ||
- | error 99 happened | ||
- | after error | ||
- | </ | ||
- | ==== See Also ==== | ||
- | {{page> | ||
- | |||
- | ==== History ==== | ||
- | |0.9.6.75|New To Version| |