DISABLE EVENT

Prevents HTBasic from branching upon receipt of a specified event
 

Example

DISABLE EVENT @Myscrollbar,"CHANGED"
DISABLE EVENT @String1, "KEYSTROKE"
 

Syntax

 
DISABLE EVENT @w_hndl, event_name
 
Item
Description
Range
event_name
name of an event this widget can disable (string expression)
depends on the widget
w_hndl
widget handle name
any valid name
 

Description

DISABLE EVENT temporarily suspend responding to events. For example, you may want the program to accomplish some task without interruption. After that task is accomplished, you can use ENABLE EVENT to re-enable event branching. A disabled event can still be logged so that when the event is re-enabled, the branch will be taken. Only one occurrence of the event will be logged. The events can all be disabled and still accept inputs.
 
Note that DISABLE EVENT temporarily disables the event, while OFF EVENT permanently deactivates it. Therefore, only one occurrence of the event will be logged if the event is disabled with DISABLE EVENT and the specified branch will be taken once the event is re enabled with ENABLE EVENT, whereas the event will NOT be logged and the branch will never be taken if the event is deactivated with OFF EVENT.
 
For example:
 
 ENABLE EVENT @Meter, ALARM .
 DISABLE EVENT @Meter, ALARM