Unload method

Unloads the display from memory. If the display is cached, it will be removed from the cache.
When this method is called, the following events occur in the indicated order:
  1. If the display is the active window: Display_Deactivate
  2. If the display is animating: Display_BeforeAnimationStop
  3. If the display was animating, the Animating property is set to False.
  4. If the display was animating: Display_AfterAnimationStop.
  5. Display_Unload
  6. Application_DisplayUnload
Syntax
Display
.
Unload
where
Display
– is the name of a Display object or an expression that evaluates to a Display object.
Remarks
  • If the display is under test animation in the Graphics editor, calls to the Unload method raise an error with Err.Number equal to gfxErrorTestAnimation.
  • To call the VBA Unload method to unload a VBA form, use the syntax
    VBA.Unload
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal