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:
- If the display is the active window: Display_Deactivate
- If the display is animating: Display_BeforeAnimationStop
- If the display was animating, the Animating property is set to False.
- If the display was animating: Display_AfterAnimationStop.
- Display_Unload
- 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 syntaxVBA.Unload
Provide Feedback