cascaded_20on_20close_20handling
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
cascaded_20on_20close_20handling [2018/03/31 13:19] – external edit 127.0.0.1 | cascaded_20on_20close_20handling [2024/01/05 00:22] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====Cascaded ON CLOSE handling===== | =====Cascaded ON CLOSE handling===== | ||
- | //by Richard Russell, September 2010//\\ \\ The article [[/ | + | //by Richard Russell, September 2010//\\ \\ The article [[/ |
+ | |||
+ | <code bb4w> | ||
PRINT "Click Close to test cascaded ON CLOSE handling" | PRINT "Click Close to test cascaded ON CLOSE handling" | ||
PRINT "Press Escape to test cascaded ON ERROR handling" | PRINT "Press Escape to test cascaded ON ERROR handling" | ||
Line 39: | Line 41: | ||
DEF PROCclose | DEF PROCclose | ||
- | IF !392 PROC(^@%+392) ELSE QUIT | + | |
+ | c%% = PAGE - !340 + !392 | ||
+ | | ||
ENDPROC | ENDPROC | ||
+ | </ | ||
+ | |||
Note that in a real-world example the final ON CLOSE handler would probably **QUIT** the program. That isn't done here because the displayed output would disappear!\\ \\ There is a theoretical possibility that an ON CLOSE event could occur //between// the **ON CLOSE** and **ON ERROR** statements in PROC0. In that very unlikely circumstance, | Note that in a real-world example the final ON CLOSE handler would probably **QUIT** the program. That isn't done here because the displayed output would disappear!\\ \\ There is a theoretical possibility that an ON CLOSE event could occur //between// the **ON CLOSE** and **ON ERROR** statements in PROC0. In that very unlikely circumstance, |
cascaded_20on_20close_20handling.1522502347.txt.gz · Last modified: 2024/01/05 00:18 (external edit)