advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
UNLOAD Statement Details
  ◄Summary►  ◄Details►  ◄Example►                ◄Contents►  ◄Index►  ◄Back►
──────────────────────────────────────────────────────────────────────────────
 UNLOAD {form | ctlname[index%]}
 
 Usage Notes
   ■ Unloading a form or control frees memory and resets properties to their
     original value.
 
   ■ When a form is unloaded, all controls placed on the form at run time
     are no longer accessible. Controls placed on the form at design time
     remain intact, although any run-time changes to those controls and
     their properties are lost when the form is reloaded. All changes to
     form properties are also lost.
 
   ■ Control array elements added to a form at run time can only be removed
     with the UNLOAD statement. The properties of unloaded controls are
     reinitialized when the controls are reloaded.
 
   ■ When a modal form is unloaded, program execution returns to the point
     in code where the SHOW method was used to display the modal form.
     See: ◄Modal Vs. Modeless►  ◄SHOW Method►
 
   ■ Referencing a control on a form that has been unloaded causes the form
     to be reloaded.