mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-28 11:17:47 +00:00
22 lines
645 B
Text
22 lines
645 B
Text
ON creates event procedure calls or enables event trapping.
|
|
|
|
|
|
* Set the sub-procedure call for [[KEY(n)]], [[STRIG(n)]], [[TIMER]]
|
|
|
|
* 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:''
|
|
|
|
[[ON...GOSUB]], [[ON...GOTO]]
|
|
|
|
[[OFF]], [[STOP]], [[KEY]]
|
|
|
|
[[$CHECKING]]
|
|
|
|
|
|
{{PageNavigation}}
|