TRAPCLR
ANSI
The TRAPCLR instruction is clears a previously set trap. It uses one of the following formats:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Where:
label
Optional. A Program Execution Label.
event
Required. One of the trappable program Events.
Flags Affected: NONE
Note the following:
ALL specifies that all events that are trapped are cleared.
CHARS specifies that all {char} events that are trapped are cleared. Unless the program was compiled with the ANSI switch, only one {char} event may be trapped at a time. Otherwise, any keyboard character may be trapped.
ALLFKEYS specifies that all function key events that are trapped are cleared.
ALLKEYS specifies that all {char} events and all function key events that are trapped are cleared.
It is not necessary to execute a TRAPCLR on an event prior to setting another TRAP for the same event.
See Also: Example Code, CALL, Trap Events, Exceptions, Program Control Instructions
![]() |