The Close method closes an open window.
window.Close
• window – A window object.
Use the Close method to close any open window in Microsoft Dynamics GP (a window whose IsLoaded property is True). An open window may not necessarily be visible.
The Close method invokes the VBA BeforeClose event and AfterClose event, and the Microsoft Dynamics GP close event for the window.