HTBasic Help
×
Menu
Index

On Event Command

 
ON EVENT
Defines an event branch that is taken after a widget generates that event
______________________________________________________________________
 
NOTE
 
Click the >> bar for additional information on the ON EVENT command.
 
Legal Usage                Keyboard Executable                Yes
                 Programmable                        Yes
                 In an IF...THEN...                        Yes
 
Example                                ON EVENT @Pushbutton_3,"ACTIVATED" GOSUB
Statements                  Clear_profile
                                         ON EVENT @Slider, "DONE" GOSUB
                                                            Change_temphigh
                                         ON EVENT @Sldr,"CHANGED", VAL(SYSTEM$
                                                            ("SYSTEM PRIORITY"))+1
                                                            GOSUB Chg_stpnt
ON EVENT @Main,"SYSTEM CLOSE" GOTO Finis
 
Syntax
 
 
Item
Description
Range
event name
name of an event this widget can generate
depends on the widget
line reference
INTEGER constant identifying a program line or line label
1 to 32767 or line label
priority
numeric expression,, rounded to an INTEGER. Default = 1.
1 to 15 (highest)
subprogram name
name of a SUB or CSUB subprogram
any valid name
widget handle
name identifying a widget
any valid name
 
Description
 
See Description for the ON EVENT description.