HTBasic Help
×
Menu
Index

Destroying Widgets

 
Widgets are normally destroyed with ASSIGN, but they are also terminated when the program stops.
 
 
    ASSIGN @widget handle TO *
 
where widget handle is the name that was given to this widget in the ASSIGN command that created the widget
 
For example, to destroy the widget @Meter, insert the following line in your program at a point after the widget has performed its function:
 
    ASSIGN @Meter to *
 
Widgets are destroyed automatically when the:
 
·
Context in which they are created terminates
·
Subprogram in which they are created terminates
·
Function in which they are created terminates
·
Program in which they are created stops, because the user presses Shift-Stop or Reset, or through normal program termination