HTBasic Help
×
Menu
Index

OFF KEY

Cancels event branches defined by ON KEY.
 
 OFF KEY [key-number]
 
Usage:
OFF KEY
OFF KEY 2
OFF KEY Lock
IF Carkey AND NOT Housekey THEN OFF KEY
 
Example:           OFF KEY.BAS
 
Description:
OFF KEY cancels event branches for the specified softkey or all softkeys if not specified. The key-number range is zero through twenty-three. Any KEY events for affected softkeys that have been logged but not yet serviced are canceled. OFF KEY also restores the previous key labels.
 
Executing OFF KEY within a subprogram disables the ON KEY definitions within the subprogram context. When control is returned to the calling program the ON KEY definitions are re-enabled.
 
See Also: