Events: Difference between revisions

Content added Content deleted
(→‎{{header|REXX}}: added the REXX language. -- ~~~~)
m (→‎{{header|REXX}}: added verbage in the REXX section header.)
Line 626: Line 626:


=={{header|REXX}}==
=={{header|REXX}}==
Although REXX can be event driven, most events would probably have to be actively checked to see if the event occurs.
<br>Here is a time-driven example of events happening, based on specific timer ticks.
<lang rexx>/*REXX program shows a method of handling events (this is time-driven). */
<lang rexx>/*REXX program shows a method of handling events (this is time-driven). */
signal on halt /*allow the user to HALT the pgm.*/
signal on halt /*allow the user to HALT the pgm.*/