ON: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
m (Protected "ON" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite))) |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
* Set the sub-procedure call for [[KEY(n)]], [[ | * Set the sub-procedure call for [[KEY(n)]], [[STRIG(n)]] and [[TIMER|TIMER(n)]] | ||
* To turn on event trapping for | * To turn on event trapping for [[ON KEY(n)]], [[ON STRIG(n)]] and [[ON TIMER(n)]]. | ||
* In the case of [[ON ERROR]] the trap is also enabled until a subsequent ON ERROR statement. | * In the case of [[ON ERROR]] the trap is also enabled until a subsequent ON ERROR statement. | ||
Line 11: | Line 11: | ||
{{PageSeeAlso}} | |||
* [[ON...GOSUB]], [[ON...GOTO]] | |||
[[ON...GOSUB]], [[ON...GOTO]] | * [[OFF]], [[STOP]], [[KEY]] | ||
* [[$CHECKING]] | |||
[[OFF]], [[STOP]], [[KEY]] | |||
[[$CHECKING]] | |||
{{PageNavigation}} | {{PageNavigation}} |
Latest revision as of 16:58, 24 February 2023
ON creates event procedure calls or enables event trapping.
- To turn on event trapping for ON KEY(n), ON STRIG(n) and ON TIMER(n).
- In the case of ON ERROR the trap is also enabled until a subsequent ON ERROR statement.
- ON procedures should be used only in the main program module and not inside of SUB procedures!
- If you have used the $CHECKING:OFF metacommand, $CHECKING:ON will turn on c++ error checking again.
See also