OFF EVENT
Cancels event branches defined by ON EVENT
______________________________________________________________________
Legal Usage Keyboard Executable Yes
Programmable Yes
In an IF...THEN... Yes
Example OFF EVENT @Pushbutton_3,"ACTIVATED"
Statements OFF EVENT @Slider, "DONE"
Syntax
![]()
Description
The OFF EVENT statement undefines and disables a widget event that was defined and enabled earlier by an ON EVENT statement.
In the following example, the first line causes the program to go to the subroutine Event_handler when the SLIDER widget event CHANGED occurs. Then, the next line cancels the event branch. Thus, after the second line, the occurrence of the event CHANGED will not cause a branch to Event_handler.
ON EVENT @Slider;"CHANGED" GOSUB Event_handler .
.
OFF EVENT @Slider, "CHANGED"
There are three important differences between the OFF EVENT and DISABLE EVENT statements:
|